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
2 changed files with 2 additions and 2 deletions
16
bin/windows/evennia_launcher.py
Executable file
16
bin/windows/evennia_launcher.py
Executable file
|
|
@ -0,0 +1,16 @@
|
|||
#! /usr/bin/python
|
||||
"""
|
||||
Windows launcher. This is called by a dynamically created .bat file in
|
||||
the python bin directory and makes the 'evennia' program available on
|
||||
the command %path%.
|
||||
"""
|
||||
|
||||
import os, sys
|
||||
|
||||
# for pip install -e
|
||||
sys.path.insert(0, os.path.abspath(os.getcwd()))
|
||||
# main library path
|
||||
sys.path.insert(0, os.path.join(sys.prefix, "Lib", "site-packages"))
|
||||
|
||||
from evennia.server.evennia_launcher import main
|
||||
main()
|
||||
Loading…
Add table
Add a link
Reference in a new issue