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:
Griatch 2015-03-01 12:43:36 +01:00
parent a23d78d5b0
commit 8631180529
2 changed files with 2 additions and 2 deletions

View File

@ -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")]