/[ascend]/trunk/pygtk/gtkbrowser.py
ViewVC logotype

Diff of /trunk/pygtk/gtkbrowser.py

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

revision 355 by johnpye, Mon Mar 6 03:11:28 2006 UTC revision 356 by johnpye, Mon Mar 6 03:43:04 2006 UTC
# Line 80  class Browser: Line 80  class Browser:
80          #--------          #--------
81          # initialise ASCEND          # initialise ASCEND
82    
83          _defaultpath = config.DEFAULT_LIBRARY          _prefpath = self.prefs.getStringPref("Directories","librarypath",None)
84          print "PYTHON SAYS DEFAULT LIBRARY IS",_defaultpath          
85          print "WE WILL LET THE ENGINE DECIDE..."          if _prefpath:
86          self.library = ascend.Library()              _path = _prefpath
87                print "SETTING ASCENDLIBRARY from preferences:",_path
88                self.library = ascend.Library(_prefpath)
89            else:
90                _defaultpath = config.DEFAULT_LIBRARY
91                print "PYTHON SAYS DEFAULT LIBRARY IS",_defaultpath
92                print "WE WILL LET THE ENGINE DECIDE..."
93                self.library = ascend.Library()
94    
95          self.sim = None          self.sim = None
96    

Legend:
Removed from v.355  
changed lines
  Added in v.356

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