mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-28 20:03:18 +00:00
wmlunits: use data dir specified on command line...
...instead of './data' to find TeamColorizer
This commit is contained in:
parent
8e8855d065
commit
2f38261d08
@ -126,7 +126,7 @@ class ImageCollector:
|
|||||||
ipath, i, c, bases = self.images[iid]
|
ipath, i, c, bases = self.images[iid]
|
||||||
if ipath and os.path.exists(ipath):
|
if ipath and os.path.exists(ipath):
|
||||||
#shutil.copy2(ipath, opath)
|
#shutil.copy2(ipath, opath)
|
||||||
command = os.path.join("data",
|
command = os.path.join(self.datadir,
|
||||||
"tools/unit_tree/TeamColorizer") + " '%s' '%s'" % (
|
"tools/unit_tree/TeamColorizer") + " '%s' '%s'" % (
|
||||||
ipath, opath)
|
ipath, opath)
|
||||||
os.system(command)
|
os.system(command)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user