Fix Windows specific bugs
This commit is contained in:
parent
a867bca987
commit
59bde7c966
1 changed files with 2 additions and 2 deletions
|
|
@ -38,7 +38,7 @@ EVENNIA_ROOT = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(_
|
||||||
|
|
||||||
import evennia # noqa
|
import evennia # noqa
|
||||||
|
|
||||||
EVENNIA_LIB = os.path.join(os.path.dirname(os.path.abspath(evennia.__file__)))
|
EVENNIA_LIB = os.path.join(EVENNIA_ROOT, "evennia")
|
||||||
EVENNIA_SERVER = os.path.join(EVENNIA_LIB, "server")
|
EVENNIA_SERVER = os.path.join(EVENNIA_LIB, "server")
|
||||||
EVENNIA_TEMPLATE = os.path.join(EVENNIA_LIB, "game_template")
|
EVENNIA_TEMPLATE = os.path.join(EVENNIA_LIB, "game_template")
|
||||||
EVENNIA_PROFILING = os.path.join(EVENNIA_SERVER, "profiling")
|
EVENNIA_PROFILING = os.path.join(EVENNIA_SERVER, "profiling")
|
||||||
|
|
@ -1226,7 +1226,7 @@ def evennia_version():
|
||||||
version = "Unknown"
|
version = "Unknown"
|
||||||
try:
|
try:
|
||||||
version = evennia.__version__
|
version = evennia.__version__
|
||||||
except ImportError:
|
except (ImportError, AttributeError):
|
||||||
# even if evennia is not found, we should not crash here.
|
# even if evennia is not found, we should not crash here.
|
||||||
pass
|
pass
|
||||||
try:
|
try:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue