Fixed the python wml parser:
wesnoth --preprocess no longer accepts defines, have to use --preprocess-defines now.
This commit is contained in:
parent
6da33317be
commit
dade3d80e8
1 changed files with 3 additions and 3 deletions
|
@ -237,14 +237,14 @@ class Parser:
|
|||
tempdirs_to_clean.append(output)
|
||||
|
||||
self.temp_dir = output
|
||||
p_option = "-p=" + defines if defines else "-p "
|
||||
commandline = [self.wesnoth_exe]
|
||||
if self.data_dir:
|
||||
commandline += ["--data-dir", self.data_dir]
|
||||
if self.config_dir:
|
||||
commandline += ["--config-dir", self.config_dir]
|
||||
commandline += [p_option, self.path,
|
||||
output]
|
||||
commandline += ["--preprocess", self.path, output]
|
||||
if defines:
|
||||
commandline += ["--preprocess-defines", defines]
|
||||
if self.verbose:
|
||||
print(" ".join(commandline))
|
||||
p = subprocess.Popen(commandline,
|
||||
|
|
Loading…
Add table
Reference in a new issue