mirror of
https://github.com/evennia/evennia.git
synced 2026-04-02 14:07:16 +02:00
Made sure to have the launcher send the gamedir as the first entry in the environment for the portal and launcher. This makes it possible to start evennia from anywhere in the game folder.
This commit is contained in:
parent
5038d42438
commit
ec4e985c39
3 changed files with 1 additions and 9 deletions
|
|
@ -91,6 +91,7 @@ def getenv():
|
|||
"""
|
||||
sep = ";" if os.name == "nt" else ":"
|
||||
env = os.environ.copy()
|
||||
sys.path.insert(0, GAMEDIR)
|
||||
env['PYTHONPATH'] = sep.join(sys.path)
|
||||
return env
|
||||
|
||||
|
|
|
|||
|
|
@ -11,11 +11,6 @@ by game/evennia.py).
|
|||
import sys
|
||||
import os
|
||||
|
||||
# add core Evennia directory
|
||||
sys.path.insert(1, os.path.dirname(os.path.dirname(os.path.dirname(
|
||||
os.path.dirname(os.path.abspath(__file__))))))
|
||||
sys.path.insert(1, os.getcwd())
|
||||
|
||||
from twisted.application import internet, service
|
||||
from twisted.internet import protocol, reactor
|
||||
from twisted.web import server
|
||||
|
|
|
|||
|
|
@ -11,10 +11,6 @@ import time
|
|||
import sys
|
||||
import os
|
||||
|
||||
# add core Evennia directory
|
||||
sys.path.insert(1, os.path.dirname(os.path.dirname(
|
||||
os.path.dirname(os.path.abspath(__file__)))))
|
||||
|
||||
from twisted.web import server, static
|
||||
from twisted.application import internet, service
|
||||
from twisted.internet import reactor, defer
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue