From d96c64373cab14d29793e2c01aec054ee4549fb6 Mon Sep 17 00:00:00 2001 From: Philip Eisenlohr Date: Thu, 15 Dec 2011 22:21:44 +0000 Subject: [PATCH] added option to have blank pathInfo (to switch off ACML for example) --- lib/damask/environment.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/damask/environment.py b/lib/damask/environment.py index 058ef51d6..34643c199 100644 --- a/lib/damask/environment.py +++ b/lib/damask/environment.py @@ -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