79 |
LDPATH = [INSTALL_LIB] + LDPATH |
LDPATH = [INSTALL_LIB] + LDPATH |
80 |
os.environ[LDPATHVAR] = SEP.join(LDPATH) |
os.environ[LDPATHVAR] = SEP.join(LDPATH) |
81 |
restart = 1 |
restart = 1 |
|
|
|
|
PYTHONPATH = os.environ.get("PYTHONPATH") |
|
|
if not PYTHONPATH: |
|
|
os.environ['PYTHONPATH'] = SEP.join([INSTALL_ASCDATA]) |
|
|
restart = 1 |
|
|
elif not INSTALL_ASCDATA in PYTHONPATH.split(SEP): |
|
|
os.environ['PYTHONPATH'] = SEP.join([INSTALL_ASCDATA] + PYTHONPATH.split(SEP)) |
|
|
restart = 1 |
|
82 |
|
|
83 |
if os.environ.get('ASCENDLIBRARY'): |
if os.environ.get('ASCENDLIBRARY'): |
84 |
envmodels = [os.path.abspath(i) for i in os.environ['ASCENDLIBRARY'].split(SEP)] |
envmodels = [os.path.abspath(i) for i in os.environ['ASCENDLIBRARY'].split(SEP)] |
91 |
if restart: |
if restart: |
92 |
print "Restarting with corrected environment..." |
print "Restarting with corrected environment..." |
93 |
print " %s = %s" % (LDPATHVAR,os.environ.get(LDPATHVAR)) |
print " %s = %s" % (LDPATHVAR,os.environ.get(LDPATHVAR)) |
|
print " PYTHONPATH = %s" % os.environ['PYTHONPATH'] |
|
94 |
print " ASCENDLIBRARY = %s" % os.environ.get('ASCENDLIBRARY') |
print " ASCENDLIBRARY = %s" % os.environ.get('ASCENDLIBRARY') |
95 |
script = os.path.join(sys.path[0],"ascend") |
script = os.path.join(sys.path[0],"ascend") |
96 |
print "PYTHON =",PYTHON |
print "PYTHON =",PYTHON |
103 |
|
|
104 |
print "Running with..." |
print "Running with..." |
105 |
print " %s = %s" % (LDPATHVAR, os.environ.get(LDPATHVAR)) |
print " %s = %s" % (LDPATHVAR, os.environ.get(LDPATHVAR)) |
106 |
print " PYTHONPATH = %s" % os.environ.get('PYTHONPATH') |
print " sys.path = %s" % sys.path |
107 |
print " argv = %s" % sys.argv |
print " argv = %s" % sys.argv |
108 |
|
|
109 |
if os.environ.get('ASCENDLIBRARY'): |
if os.environ.get('ASCENDLIBRARY'): |