mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-22 06:17:50 +00:00
setup.py: create bin/tahoe.pyscript on Unix as well as Windows for consistency, and to reduce conditional code. ref #1306
This commit is contained in:
parent
fd6cdc48ae
commit
0693181613
8
setup.py
8
setup.py
@ -295,11 +295,9 @@ class MakeExecutable(Command):
|
|||||||
def run(self):
|
def run(self):
|
||||||
bin_tahoe_template = os.path.join("bin", "tahoe-script.template")
|
bin_tahoe_template = os.path.join("bin", "tahoe-script.template")
|
||||||
|
|
||||||
if sys.platform == 'win32':
|
# tahoe.pyscript is really only necessary for Windows, but we also
|
||||||
# 'tahoe' script is needed for cygwin
|
# create it on Unix for consistency.
|
||||||
script_names = ["tahoe.pyscript", "tahoe"]
|
script_names = ["tahoe.pyscript", "tahoe"]
|
||||||
else:
|
|
||||||
script_names = ["tahoe"]
|
|
||||||
|
|
||||||
# Create the tahoe script file under the 'bin' directory. This
|
# Create the tahoe script file under the 'bin' directory. This
|
||||||
# file is exactly the same as the 'tahoe-script.template' script
|
# file is exactly the same as the 'tahoe-script.template' script
|
||||||
|
Loading…
Reference in New Issue
Block a user