gump-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nicola...@apache.org
Subject cvs commit: jakarta-gump/python/gump view.py
Date Sat, 03 May 2003 10:13:52 GMT
nicolaken    2003/05/03 03:13:51

  Modified:    python/gump view.py
  Log:
  os.environ -> os.getenv
  
  os.environ gives an error on my wintel machine; we should not assume
  that there is a CLASSPATH variable specified.
  
  Revision  Changes    Path
  1.16      +6 -4      jakarta-gump/python/gump/view.py
  
  Index: view.py
  ===================================================================
  RCS file: /home/cvs/jakarta-gump/python/gump/view.py,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- view.py	2 May 2003 12:40:40 -0000	1.15
  +++ view.py	3 May 2003 10:13:51 -0000	1.16
  @@ -79,7 +79,9 @@
   from gump.gen import xmlize
   from gump.model import Module, Project
   
  -classpath=os.environ['CLASSPATH'].split(os.pathsep)
  +classpath = os.getenv('CLASSPATH')
  +if(classpath):
  +  classpath = classpath.split(os.pathsep)
   
   class gumpview(wxApp):
     # model
  
  
  

Mime
View raw message