/[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 2714 by sreenatha, Tue Feb 26 01:56:46 2013 UTC revision 2715 by jpye, Sun Sep 1 12:29:23 2013 UTC
# Line 1  Line 1 
 import sys  
1  try:  try:
2      import loading      import loading
3      #loading.print_status("Loading PSYCO")      #loading.print_status("Loading PSYCO")
# Line 21  try: Line 20  try:
20      import optparse      import optparse
21      import platform      import platform
22      import sys      import sys
23        import os
24    
25      if platform.system() != "Windows":      if platform.system() != "Windows":
26          try:          try:
# Line 35  try: Line 35  try:
35          # ascend library are made available to libraries dlopened within ASCEND:          # ascend library are made available to libraries dlopened within ASCEND:
36          sys.setdlopenflags(_dlflags)          sys.setdlopenflags(_dlflags)
37    
   
   
38      loading.print_status("Loading LIBASCEND/ascpy")      loading.print_status("Loading LIBASCEND/ascpy")
39      import ascpy      import ascpy
     import os.path  
40    
41      loading.print_status("Loading PyGTK, pango")      loading.print_status("Loading PyGTK, pango")
42    
# Line 119  class Browser: Line 116  class Browser:
116      def __init__(self,librarypath=None,assetspath=None):      def __init__(self,librarypath=None,assetspath=None):
117    
118          if assetspath==None:          if assetspath==None:
119              assetspath=config.PYGTK_ASSETS              if platform.system()=="Windows":
120                            assetspath=os.path.normpath(os.path.join(os.path.dirname(__file__),"..","glade"))
121                else:
122                    assetspath=config.PYGTK_ASSETS
123    
124          #--------          #--------
125          # load the file referenced in the command line, if any          # load the file referenced in the command line, if any
126    

Legend:
Removed from v.2714  
changed lines
  Added in v.2715

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