setup: put quotes around the path to executable in case it has spaces in it, when building a tahoe.exe for win32

This commit is contained in:
Zooko O'Whielacronx 2010-06-03 19:08:36 -07:00
parent 9214dbda50
commit ca910c2c3c

View File

@ -240,7 +240,7 @@ class MakeExecutable(Command):
f = open(bin_tahoe_template, "rU")
script_lines = f.readlines()
f.close()
script_lines[0] = "#!%s\n" % sys.executable
script_lines[0] = '#!"%s"\n' % sys.executable
tahoe_script = os.path.join("bin", "tahoe-script.py")
f = open(tahoe_script, "w")
for line in script_lines: