mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
Trying with a two-step call on Windows.
This commit is contained in:
parent
1db131901f
commit
b31887338f
1 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":
|
||||
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")]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue