Trying with a two-step call on Windows.

This commit is contained in:
Griatch 2015-02-02 22:00:58 +01:00
parent 1db131901f
commit b31887338f

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, "Lib", "site-packages", "evennia", "server", "evennia_launcher.py")
scriptpath = os.path.join(sys.prefix, "Scripts", "evennia.py")
with open(batpath, "w") as batfile:
batfile.write("@\"%s\" \"%s\" %%*" % (sys.executable, scriptpath))
return [batpath]
return [batpath, os.path.join("bin", "windows", "evennia.py")]
else:
return [os.path.join("bin", "unix", "evennia")]