/[ascend]/trunk/pygtk/ascend.in
ViewVC logotype

Diff of /trunk/pygtk/ascend.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1466 by jpye, Sun Jun 3 02:48:17 2007 UTC revision 1467 by jpye, Sun Jun 3 06:19:35 2007 UTC
# Line 79  if not os.environ.get('ASC_GDB'): Line 79  if not os.environ.get('ASC_GDB'):
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)]
# Line 99  if not os.environ.get('ASC_GDB'): Line 91  if not os.environ.get('ASC_GDB'):
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
# Line 112  if not os.environ.get('ASC_GDB'): Line 103  if not os.environ.get('ASC_GDB'):
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'):

Legend:
Removed from v.1466  
changed lines
  Added in v.1467

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22