From f0f8f5a3d80c1d699c3857d4bf4a46aa00bb68d1 Mon Sep 17 00:00:00 2001 From: kaetemi Date: Sat, 15 Mar 2014 09:12:40 +0100 Subject: [PATCH] Fix crash in 0_setup.py on Linux --- code/nel/tools/build_gamedata/0_setup.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/code/nel/tools/build_gamedata/0_setup.py b/code/nel/tools/build_gamedata/0_setup.py index baeaee1cc..1e1824b2c 100644 --- a/code/nel/tools/build_gamedata/0_setup.py +++ b/code/nel/tools/build_gamedata/0_setup.py @@ -191,7 +191,11 @@ if not args.noconf: MaxUserDirectory except NameError: import os - MaxUserDirectory = os.path.normpath(os.environ["LOCALAPPDATA"] + "/Autodesk/3dsMax/2010 - 32bit/enu") + try: + MaxUserDirectory = os.path.normpath(os.environ["LOCALAPPDATA"] + "/Autodesk/3dsMax/2010 - 32bit/enu") + except KeyError: + MaxAvailable = 0 + MaxUserDirectory = "C:/Users/Kaetemi/AppData/Local/Autodesk/3dsMax/2010 - 32bit/enu" try: MaxExecutable except NameError: