Allow the 'makemessages' and 'compilemessages' commands

This commit is contained in:
Vincent Le Goff 2018-11-22 08:46:54 +01:00
parent 5a3bd8e1d8
commit 1788cc8e19
2 changed files with 20 additions and 5 deletions

View file

@ -115,7 +115,7 @@ AMP_INTERFACE = '127.0.0.1'
EVENNIA_DIR = os.path.dirname(os.path.abspath(__file__))
# Path to the game directory (containing the server/conf/settings.py file)
# This is dynamically created- there is generally no need to change this!
if sys.argv[1] == 'test' if len(sys.argv) > 1 else False:
if EVENNIA_DIR.lower() == os.getcwd().lower() or (sys.argv[1] == 'test' if len(sys.argv) > 1 else False):
# unittesting mode
GAME_DIR = os.getcwd()
else: