fixed stupid lower case typo in pathInfo assignment
This commit is contained in:
parent
12bf99c2f9
commit
4137d1f9af
|
@ -4,8 +4,8 @@ import os,sys,string,re
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
|
|
||||||
pathInfo = {\
|
pathInfo = {\
|
||||||
'acml': 'lib/acml4.4.0',
|
'acml': './acml4.4.0',
|
||||||
'fftw': 'lib/fftw',
|
'fftw': './fftw',
|
||||||
'msc': '/msc',
|
'msc': '/msc',
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -56,13 +56,12 @@ parser.set_defaults(shell = 'bash')
|
||||||
(options, args) = parser.parse_args()
|
(options, args) = parser.parse_args()
|
||||||
|
|
||||||
DamaskRoot = os.path.normpath(os.path.join(os.path.dirname(os.path.realpath(sys.argv[0])),'../'))
|
DamaskRoot = os.path.normpath(os.path.join(os.path.dirname(os.path.realpath(sys.argv[0])),'../'))
|
||||||
|
|
||||||
try: # check for user-defined pathinfo
|
try: # check for user-defined pathinfo
|
||||||
file = open(os.path.join(DamaskRoot,'lib/pathinfo'))
|
file = open(os.path.join(DamaskRoot,'lib/pathinfo'))
|
||||||
content = file.readlines()
|
content = file.readlines()
|
||||||
file.close()
|
file.close()
|
||||||
for line in content:
|
for line in content:
|
||||||
pathinfo[line.split()[0].lower()] = os.path.normpath(line.split()[1])
|
pathInfo[line.split()[0].lower()] = os.path.normpath(line.split()[1])
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue