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:
Greg Taylor 2009-07-06 02:55:25 +00:00
parent ddfd479ba9
commit 05791b3593
2 changed files with 8 additions and 4 deletions

View file

@ -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():
"""