From ca910c2c3c5fd32174977fbf91dc5c49d5190a5a Mon Sep 17 00:00:00 2001
From: Zooko O'Whielacronx <zooko@zooko.com>
Date: Thu, 3 Jun 2010 19:08:36 -0700
Subject: [PATCH] setup: put quotes around the path to executable in case it
 has spaces in it, when building a tahoe.exe for win32

---
 setup.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/setup.py b/setup.py
index d1481564..4084f2a9 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:
-- 
2.45.2