2015-02-02 22:12:13 +01:00
|
|
|
#! /usr/bin/python
|
2015-02-02 20:14:28 +01:00
|
|
|
"""
|
2015-02-02 20:54:26 +01:00
|
|
|
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%.
|
2015-02-02 20:14:28 +01:00
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
import os, sys
|
|
|
|
|
|
2015-02-02 22:23:40 +01:00
|
|
|
# for pip install -e
|
2015-02-02 20:14:28 +01:00
|
|
|
sys.path.insert(0, os.path.abspath(os.getcwd()))
|
2015-02-02 22:23:40 +01:00
|
|
|
# main library path
|
|
|
|
|
sys.path.insert(0, os.path.join(sys.prefix, "Lib", "site-packages"))
|
2015-02-02 20:14:28 +01:00
|
|
|
|
|
|
|
|
from evennia.server.evennia_launcher import main
|
|
|
|
|
main()
|