]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
setup: put quotes around the path to executable in case it has spaces in it, when...
authorZooko O'Whielacronx <zooko@zooko.com>
Fri, 4 Jun 2010 02:08:36 +0000 (19:08 -0700)
committerZooko O'Whielacronx <zooko@zooko.com>
Fri, 4 Jun 2010 02:08:36 +0000 (19:08 -0700)
setup.py

index d1481564472412c3aa60dcc19e650734eb041d44..4084f2a984e7be732f6a783d052f40af186b9887 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -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: