Fix crash in 0_setup.py on Linux

This commit is contained in:
kaetemi 2014-03-15 09:12:40 +01:00
parent c1a6c3aa87
commit f0f8f5a3d8

View file

@ -191,7 +191,11 @@ if not args.noconf:
MaxUserDirectory MaxUserDirectory
except NameError: except NameError:
import os 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: try:
MaxExecutable MaxExecutable
except NameError: except NameError: