Author: esr
Date: Fri Dec  5 14:41:06 2008
New Revision: 31284

URL: http://svn.gna.org/viewcvs/wesnoth?rev=31284&view=rev
Log:
Cope with whole-repo checkputs better.

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=31284&r1=31283&r2=31284&view=diff
==============================================================================
--- trunk/data/tools/wesnoth/wmltools.py (original)
+++ trunk/data/tools/wesnoth/wmltools.py Fri Dec  5 14:41:06 2008
@@ -22,6 +22,9 @@
         sys.stderr.write(whoami + ": must be run from within a Battle "
                          "for Wesnoth source tree.\n")
         sys.exit(1)
+    # In case we're looking at a whole-repo checkout in SVN
+    if os.path.exists("trunk"):
+        os.chdir("trunk")
 
 def string_strip(value):
     "String-strip the value"


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to