mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 12:56:30 +01:00
Refactored the devel/bin structure to hopefully make the system work better on Windows.
This commit is contained in:
parent
6323ba965b
commit
f780f469b1
12 changed files with 32 additions and 21 deletions
11
setup.py
11
setup.py
|
|
@ -26,17 +26,10 @@ def get_scripts():
|
|||
Determine which executable scripts should be added. For Windows,
|
||||
this means creating a .bat file.
|
||||
"""
|
||||
execlist = []
|
||||
if os.name == "nt":
|
||||
# Windows
|
||||
with open(os.path.join("bin", "evennia.bat"), "w") as bat_file:
|
||||
bat_file.write("@\"%s\" \"%s\" %%*" % (sys.executable, "evennia"))
|
||||
execlist.extend(["bin/evennia.bat", "bin/evennia"])
|
||||
return [os.path.join("bin", "windows", "evennia.bat"), os.path.join("bin", "windows", "evennia.py")]
|
||||
else:
|
||||
# Linux, Mac
|
||||
execlist.append("bin/evennia")
|
||||
execlist.append("bin/evennia_runner.py")
|
||||
return execlist
|
||||
return [os.path.join("bin", "unix", "evennia")]
|
||||
|
||||
|
||||
def get_version():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue