From: david-sarah Date: Mon, 31 Jan 2011 00:58:09 +0000 (-0700) Subject: setup.py: don't make bin/tahoe.pyscript executable. fixes #1347 X-Git-Url: https://git.rkrishnan.org/pf/content/en/seg/biz/?a=commitdiff_plain;h=89581eb475ef98cb2c72cbfcbf9b9e12647bdb9f;p=tahoe-lafs%2Ftahoe-lafs.git setup.py: don't make bin/tahoe.pyscript executable. fixes #1347 --- diff --git a/setup.py b/setup.py index 1c51e854..f527012b 100644 --- a/setup.py +++ b/setup.py @@ -323,12 +323,13 @@ class MakeExecutable(Command): f.write(line) f.close() - # chmod +x - old_mode = stat.S_IMODE(os.stat(tahoe_script)[stat.ST_MODE]) - new_mode = old_mode | (stat.S_IXUSR | stat.S_IRUSR | - stat.S_IXGRP | stat.S_IRGRP | - stat.S_IXOTH | stat.S_IROTH ) - os.chmod(tahoe_script, new_mode) + # chmod +x + unix_script = os.path.join("bin", "tahoe") + old_mode = stat.S_IMODE(os.stat(unix_script)[stat.ST_MODE]) + new_mode = old_mode | (stat.S_IXUSR | stat.S_IRUSR | + stat.S_IXGRP | stat.S_IRGRP | + stat.S_IXOTH | stat.S_IROTH ) + os.chmod(unix_script, new_mode) old_tahoe_exe = os.path.join("bin", "tahoe.exe") try: