Changed the windows launcher name to evennia_launcher.py instead of just evennia.py since Windows requires a batfile (named evennia) in order to work, and there is a name clash between them otherwise.
This commit is contained in:
parent
a23d78d5b0
commit
8631180529
2 changed files with 2 additions and 2 deletions
4
setup.py
4
setup.py
|
|
@ -28,10 +28,10 @@ def get_scripts():
|
||||||
"""
|
"""
|
||||||
if os.name == "nt":
|
if os.name == "nt":
|
||||||
batpath = os.path.join("bin", "windows", "evennia.bat")
|
batpath = os.path.join("bin", "windows", "evennia.bat")
|
||||||
scriptpath = os.path.join(sys.prefix, "Scripts", "evennia.py")
|
scriptpath = os.path.join(sys.prefix, "Scripts", "evennia_launcher.py")
|
||||||
with open(batpath, "w") as batfile:
|
with open(batpath, "w") as batfile:
|
||||||
batfile.write("@\"%s\" \"%s\" %%*" % (sys.executable, scriptpath))
|
batfile.write("@\"%s\" \"%s\" %%*" % (sys.executable, scriptpath))
|
||||||
return [batpath, os.path.join("bin", "windows", "evennia.py")]
|
return [batpath, os.path.join("bin", "windows", "evennia_launcher.py")]
|
||||||
else:
|
else:
|
||||||
return [os.path.join("bin", "unix", "evennia")]
|
return [os.path.join("bin", "unix", "evennia")]
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue