[Frhed-commits] SF.net SVN: frhed:[867] trunk/Tools/cleanup_backups.py
Brought to you by:
kimmov
From: <ki...@us...> - 2010-04-18 18:04:45
|
Revision: 867 http://frhed.svn.sourceforge.net/frhed/?rev=867&view=rev Author: kimmov Date: 2010-04-18 18:04:38 +0000 (Sun, 18 Apr 2010) Log Message: ----------- Cleanup script: print message also when called from other script. Modified Paths: -------------- trunk/Tools/cleanup_backups.py Modified: trunk/Tools/cleanup_backups.py =================================================================== --- trunk/Tools/cleanup_backups.py 2010-04-18 10:39:39 UTC (rev 866) +++ trunk/Tools/cleanup_backups.py 2010-04-18 18:04:38 UTC (rev 867) @@ -31,6 +31,7 @@ scriptversion = 0.1 def cleanupfolder(folder): + print 'Removing backup files from ' + folder + ' ...' reportfolder = os.path.join(folder, r'_UpgradeReport_Files') if os.path.exists(reportfolder): shutil.rmtree(reportfolder) @@ -83,7 +84,6 @@ print 'ERROR: Cannot find path: ' + rootfolder sys.exit() - print 'Removing backups from folder: ' + rootfolder cleanupfolder(rootfolder) # MAIN # This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |