mirror of
https://github.com/evennia/evennia.git
synced 2026-04-04 23:17:17 +02:00
Two patches, courtesy of Ari:
* The startup script (evennia.py) will now take your PYTHONPATH environmental variable into account when starting. This may resolve potential issues with Twisted on Windows with certain combinations of Python. * The INSTALL file still referred to startup.bat, which is now gone in favor of evennia.py. Thanks Ari!
This commit is contained in:
parent
ddfd479ba9
commit
05791b3593
2 changed files with 8 additions and 4 deletions
|
|
@ -35,7 +35,11 @@ else:
|
|||
TWISTED_BINARY = 'twistd'
|
||||
|
||||
# Add this to the environmental variable for the 'twistd' command.
|
||||
os.environ['PYTHONPATH'] = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
||||
tmppath = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
||||
if 'PYTHONPATH' in os.environ:
|
||||
os.environ['PYTHONPATH'] += (":%s" % tmppath)
|
||||
else:
|
||||
os.environ['PYTHONPATH'] = tmppath
|
||||
|
||||
def cycle_logfile():
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue