Author: elias
Date: Sat Jun 11 21:31:13 2011
New Revision: 49844

URL: http://svn.gna.org/viewcvs/wesnoth?rev=49844&view=rev
Log:
Fixed the python wml parser: wesnoth --preprocess no longer accepts defines, 
have to use --preprocess-defines now.

Modified:
    trunk/data/tools/wesnoth/wmlparser2.py

Modified: trunk/data/tools/wesnoth/wmlparser2.py
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/data/tools/wesnoth/wmlparser2.py?rev=49844&r1=49843&r2=49844&view=diff
==============================================================================
--- trunk/data/tools/wesnoth/wmlparser2.py (original)
+++ trunk/data/tools/wesnoth/wmlparser2.py Sat Jun 11 21:31:13 2011
@@ -237,14 +237,14 @@
             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,


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

Reply via email to