added option to have blank pathInfo (to switch off ACML for example)

This commit is contained in:
Philip Eisenlohr 2011-12-15 22:21:44 +00:00
parent fbfb39de3f
commit d96c64373c
1 changed files with 3 additions and 1 deletions

View File

@ -41,7 +41,9 @@ class Environment():
content = file.readlines()
file.close()
for line in content:
self.pathInfo[line.split()[0].lower()] = os.path.normpath(os.path.join(self.relPath('lib/'),line.split()[1]))
items = line.split() + ['','']
self.pathInfo[items[0].lower()] = {False: os.path.normpath(os.path.join(self.relPath('lib/'),items[1])),
True: items[1]}[items[1] == '']
except:
pass