made string comparison fool-proof with lower-casing.

This commit is contained in:
Philip Eisenlohr 2011-11-03 17:34:44 +00:00
parent cac203939b
commit 7af1249298
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ class MSC_TOOLS():
try: # check for MSC.Mentat installation location
file = open(os.path.join(DamaskRoot,'lib/pathinfo'))
for line in file.readlines():
if line.split()[0] == 'MSC': MSCpath = os.path.normpath(line.split()[1])
if line.split()[0].lower() == 'msc': MSCpath = os.path.normpath(line.split()[1])
file.close()
except:
MSCpath = '/msc'