Author: elias
Date: Fri Oct  3 17:33:07 2008
New Revision: 29831

URL: http://svn.gna.org/viewcvs/wesnoth?rev=29831&view=rev
Log:
wmlunits: use path relative to executing script to find TeamColorizer

Modified:
    trunk/data/tools/unit_tree/helpers.py

Modified: trunk/data/tools/unit_tree/helpers.py
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/data/tools/unit_tree/helpers.py?rev=29831&r1=29830&r2=29831&view=diff
==============================================================================
--- trunk/data/tools/unit_tree/helpers.py (original)
+++ trunk/data/tools/unit_tree/helpers.py Fri Oct  3 17:33:07 2008
@@ -126,8 +126,10 @@
             ipath, i, c, bases = self.images[iid]
             if ipath and os.path.exists(ipath):
                 #shutil.copy2(ipath, opath)
-                command = os.path.join(self.datadir,
-                    "tools/unit_tree/TeamColorizer") + " '%s' '%s'" % (
+                # We assume TeamColorizer is in the same directory as the
+                # helpers.py currently executing.
+                command = os.path.join(os.path.dirname(__file__),
+                    "TeamColorizer") + " '%s' '%s'" % (
                     ipath, opath)
                 os.system(command)
             else:


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

Reply via email to