Browse Source

Hopefully this will fix the problems on Linux with makensis

rdb 14 years ago
parent
commit
a5c746b5d7
1 changed files with 5 additions and 6 deletions
  1. 5 6
      direct/src/p3d/DeploymentTools.py

+ 5 - 6
direct/src/p3d/DeploymentTools.py

@@ -936,14 +936,13 @@ class Installer:
         nsi.write('SectionEnd')
         nsi.close()
 
-        options = ["V2"]
-        cmd = "\"" + makensis + "\""
-        for o in options:
+        cmd = [makensis]
+        for o in ["V2"]:
             if sys.platform.startswith("win"):
-                cmd += " /" + o
+                cmd.append("/" + o)
             else:
-                cmd += " -" + o
-        cmd += " \"" + nsifile.toOsSpecific() + "\""
+                cmd.append("-" + o)
+        cmd.append(nsifile.toOsSpecific())
         print cmd
         try:
             retcode = subprocess.call(cmd, shell = False)