gump-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aj...@apache.org
Subject cvs commit: gump/python/gump/document forrest.py
Date Fri, 12 Mar 2004 14:47:48 GMT
ajack       2004/03/12 06:47:48

  Modified:    python/gump/document forrest.py
  Log:
  Wipe the log directory, but don't fail if can't remove/recreate it.
  
  Revision  Changes    Path
  1.101     +8 -5      gump/python/gump/document/forrest.py
  
  Index: forrest.py
  ===================================================================
  RCS file: /home/cvs/gump/python/gump/document/forrest.py,v
  retrieving revision 1.100
  retrieving revision 1.101
  diff -u -r1.100 -r1.101
  --- forrest.py	12 Mar 2004 02:50:52 -0000	1.100
  +++ forrest.py	12 Mar 2004 14:47:48 -0000	1.101
  @@ -178,8 +178,11 @@
           #
           logDirectory=workspace.getLogDirectory()
           if os.path.exists(logDirectory):
  -            shutil.rmtree(logDirectory)            
  -        os.makedirs(logDirectory)
  +            try:
  +                shutil.rmtree(logDirectory)  
  +            except: pass
  +        if not os.path.exists(logDirectory):          
  +            os.makedirs(logDirectory)
           
           # Then generate...        
           forrest=Cmd('forrest','forrest',forrestDir)
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
For additional commands, e-mail: general-help@gump.apache.org


Mime
View raw message