remove old backups

This commit is contained in:
Clinton Hall 2013-03-13 22:04:42 -07:00
commit c18f698c81

View file

@ -182,6 +182,8 @@ def migrate():
# create a backup of our old config # create a backup of our old config
backupname = os.path.join(os.path.dirname(sys.argv[0]), "autoProcessMedia.cfg.old") backupname = os.path.join(os.path.dirname(sys.argv[0]), "autoProcessMedia.cfg.old")
if os.path.isfile(backupname): # remove older backups
os.unlink(backupname)
os.rename(configFilenameold, backupname) os.rename(configFilenameold, backupname)
# rename our newly edited autoProcessMedia.cfg.sample to autoProcessMedia.cfg # rename our newly edited autoProcessMedia.cfg.sample to autoProcessMedia.cfg