mirror of
https://github.com/evennia/evennia.git
synced 2025-10-29 19:35:56 +00:00
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
4
setup.py
4
setup.py
@ -28,10 +28,10 @@ def get_scripts():
|
||||
"""
|
||||
if os.name == "nt":
|
||||
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:
|
||||
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:
|
||||
return [os.path.join("bin", "unix", "evennia")]
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user