Author: esr
Date: Tue Oct 14 05:10:26 2008
New Revision: 30151
URL: http://svn.gna.org/viewcvs/wesnoth?rev=30151&view=rev
Log:
Allow pop_to_top() to handle git trees and other variations.
Modified:
trunk/data/tools/wesnoth/wmltools.py
Modified: trunk/data/tools/wesnoth/wmltools.py
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/data/tools/wesnoth/wmltools.py?rev=30151&r1=30150&r2=30151&view=diff
==============================================================================
--- trunk/data/tools/wesnoth/wmltools.py (original)
+++ trunk/data/tools/wesnoth/wmltools.py Tue Oct 14 05:10:26 2008
@@ -13,7 +13,8 @@
upwards = os.getcwd().split(os.sep)
upwards.reverse()
for pathpart in upwards:
- if pathpart == "wesnoth":
+ # Loose match because people have things like git trees.
+ if pathpart.find("wesnoth"):
break
else:
os.chdir("..")
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits