mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-02-06 19:20:08 +00:00
setup.py: don't make bin/tahoe.pyscript executable. fixes #1347
This commit is contained in:
parent
a8c5734e72
commit
89581eb475
13
setup.py
13
setup.py
@ -323,12 +323,13 @@ class MakeExecutable(Command):
|
|||||||
f.write(line)
|
f.write(line)
|
||||||
f.close()
|
f.close()
|
||||||
|
|
||||||
# chmod +x
|
# chmod +x
|
||||||
old_mode = stat.S_IMODE(os.stat(tahoe_script)[stat.ST_MODE])
|
unix_script = os.path.join("bin", "tahoe")
|
||||||
new_mode = old_mode | (stat.S_IXUSR | stat.S_IRUSR |
|
old_mode = stat.S_IMODE(os.stat(unix_script)[stat.ST_MODE])
|
||||||
stat.S_IXGRP | stat.S_IRGRP |
|
new_mode = old_mode | (stat.S_IXUSR | stat.S_IRUSR |
|
||||||
stat.S_IXOTH | stat.S_IROTH )
|
stat.S_IXGRP | stat.S_IRGRP |
|
||||||
os.chmod(tahoe_script, new_mode)
|
stat.S_IXOTH | stat.S_IROTH )
|
||||||
|
os.chmod(unix_script, new_mode)
|
||||||
|
|
||||||
old_tahoe_exe = os.path.join("bin", "tahoe.exe")
|
old_tahoe_exe = os.path.join("bin", "tahoe.exe")
|
||||||
try:
|
try:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user