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

Contents of /trunk/pygtk/ascend.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 858 - (show annotations) (download)
Mon Sep 25 15:04:48 2006 UTC (13 years, 3 months ago) by johnpye
File size: 895 byte(s)
Added new script 'ascdev' to launch ASCEND in 'developer mode'
which means that files in the source hierarchy will be used instead
of the installed files.
1 #!@PYTHON@
2
3 import os.path, sys;
4
5 if os.environ.get('ASCENDLIBRARY'):
6 ASCENDLIBRARY = os.environ.get('ASCENDLIBRARY')
7 print "USING ASCENDLIBRARY=%s" % ASCENDLIBRARY
8 else:
9 ASCENDLIBRARY = """@DEFAULT_ASCENDLIBRARY@"""
10
11
12 if os.environ.get('OSTYPE')=='cygwin':
13 print "CYGWIN..."
14 elif os.environ.get('OSTYPE')=='msys':
15 print "MSYS..."
16
17 LD_LIBRARY_PATH = os.environ.get('LD_LIBRARY_PATH')
18 if not LD_LIBRARY_PATH:
19 LD_LIBRARY_PATH = []
20 else:
21 LD_LIBRARY_PATH = LD_LIBRARY_PATH.split(":")
22
23 if __name__=='__main__':
24 import ascpy
25 from gtkbrowser import *
26 if os.environ.get('ASC_DEV'):
27 d,f = os.path.split(os.path.abspath(sys.argv[0]))
28 if os.environ.get('ASC_START'):
29 os.chdir(os.environ.get('ASC_START'))
30 librarypath = ":".join(['.',os.path.normpath(os.path.join(d,"../models"))])
31 B = Browser(librarypath=librarypath,assetspath=os.path.join(d,"glade"))
32 else:
33 B = Browser()
34 B.run()

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