Hopefully this will fix the problems on Linux with makensis

This commit is contained in:
rdb 2011-03-12 09:07:38 +00:00
parent a6d0e9765a
commit a5c746b5d7

View File

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