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

Diff of /trunk/pygtk/ascdev.in

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

revision 2143 by jpye, Sun Dec 20 08:22:49 2009 UTC revision 2144 by jpye, Wed Dec 23 13:04:19 2009 UTC
# Line 43  if __name__=='__main__': Line 43  if __name__=='__main__':
43      restart = []      restart = []
44    
45      # for Mac, add our local PyGTK libraries at start of Python path:      # for Mac, add our local PyGTK libraries at start of Python path:
46      if platform.system()=="Darwin":      #if platform.system()=="Darwin":
47          sys.path.insert(0,'dist/gtk.bundle/python')      #   sys.path.insert(0,'dist/gtk.bundle/python')
48    
49      # ensure that we have our 'models' dir in the ASCENDLIBRARY path      # ensure that we have our 'models' dir in the ASCENDLIBRARY path
50      modeldirs = [os.path.join(sourceroot,"models")]      modeldirs = [os.path.join(sourceroot,"models")]
# Line 72  if __name__=='__main__': Line 72  if __name__=='__main__':
72              print "   export %s=%s" % (v,os.environ[v])              print "   export %s=%s" % (v,os.environ[v])
73          if os.environ.get('ASC_GDB'):          if os.environ.get('ASC_GDB'):
74              print "   via GDB..."              print "   via GDB..."
75              os.execvp("gdb",['--symbols=../@SHLIBPREFIX@ascend@SHLIBSUFFIX@','--args','python',script]+sys.argv[1:])              os.execvp("gdb",['--symbols=../@SHLIBPREFIX@ascend@SHLIBSUFFIX@','--args','@PYTHON@',script]+sys.argv[1:])
76          else:          else:
77              print "PYTHON... ",script              print "PYTHON... ",script
78              sys.stdout.flush() # needed for rxvt on Windows              sys.stdout.flush() # needed for rxvt on Windows
79              os.execvp("python",[script,script]+sys.argv[1:])              os.execvp('@PYTHON@',[script,script]+sys.argv[1:])
80          # the above calls don't return so we can forget about line of enqiry          # the above calls don't return so we can forget about line of enqiry
81    
82    
83      print "\nRunning with..."      print "\nRunning with..."
84      for v in [LD_LIBRARY_PATH,'ASCENDLIBRARY','PYTHONPATH']:      for v in [LD_LIBRARY_PATH,'ASCENDLIBRARY','PYTHONPATH','PATH']:
85          print "   %s = %s" % (v,os.environ[v])          print "   %s = %s" % (v,os.environ[v])
86            
87      import ascpy      import ascpy

Legend:
Removed from v.2143  
changed lines
  Added in v.2144

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