From: Zooko O'Whielacronx Date: Fri, 4 Jun 2010 02:52:04 +0000 (-0700) Subject: setup: undo the previous patch to quote the executable in scripts X-Git-Url: https://git.rkrishnan.org/pf/content/en/$rel_link?a=commitdiff_plain;h=05c04e67c9198c57258f533c4b820681cd650894;p=tahoe-lafs%2Ftahoe-lafs.git setup: undo the previous patch to quote the executable in scripts The problem isn't in the script, it is in the cli.exe script that is built by setuptools. This might be related to http://bugs.python.org/issue6792 and http://bugs.python.org/setuptools/issue2 Or it might be a separate issue involving the launcher.c code e.g. http://tahoe-lafs.org/trac/zetuptoolz/browser/launcher.c?rev=576#L210 and its handling of the interpreter name. --- diff --git a/setup.py b/setup.py index 4084f2a9..d1481564 100644 --- 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: