wmlunits: use data dir specified on command line...

...instead of './data' to find TeamColorizer
This commit is contained in:
Elias Pschernig 2008-10-03 15:17:41 +00:00
parent 8e8855d065
commit 2f38261d08

View file

@ -126,7 +126,7 @@ class ImageCollector:
ipath, i, c, bases = self.images[iid]
if ipath and os.path.exists(ipath):
#shutil.copy2(ipath, opath)
command = os.path.join("data",
command = os.path.join(self.datadir,
"tools/unit_tree/TeamColorizer") + " '%s' '%s'" % (
ipath, opath)
os.system(command)