Fixed bug: path seperator was not taken inot account.
This commit is contained in:
parent
1e4b1d691a
commit
93f9070396
@ -4,6 +4,7 @@
|
|||||||
import hashlib
|
import hashlib
|
||||||
import numpy as np
|
import numpy as np
|
||||||
from scipy.interpolate import splrep, splev
|
from scipy.interpolate import splrep, splev
|
||||||
|
import pdb
|
||||||
import os
|
import os
|
||||||
import pwd
|
import pwd
|
||||||
import re
|
import re
|
||||||
@ -474,7 +475,8 @@ def which(program):
|
|||||||
os.environ['PATH'] += ':{0}'.format(settings.value(key))
|
os.environ['PATH'] += ':{0}'.format(settings.value(key))
|
||||||
bpath = os.path.join(os.path.expanduser('~'), '.pylot', 'autoPyLoT.in')
|
bpath = os.path.join(os.path.expanduser('~'), '.pylot', 'autoPyLoT.in')
|
||||||
if os.path.exists(bpath):
|
if os.path.exists(bpath):
|
||||||
os.environ['PATH'] += AutoPickParameter(bpath).get('nllocbin')
|
nllocpath = ":" + AutoPickParameter(bpath).get('nllocbin')
|
||||||
|
os.environ['PATH'] += nllocpath
|
||||||
except ImportError as e:
|
except ImportError as e:
|
||||||
print(e.message)
|
print(e.message)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user