Index: points/trunk/points.py =================================================================== --- points/trunk/points.py (revision 48) +++ points/trunk/points.py (revision 59) @@ -67,4 +67,5 @@ import math import shutil +import time from datetime import datetime @@ -216,5 +217,12 @@ command_line = "%s %s" % (sys.executable, " ".join(sys.argv)) - handle = open(backup_path, "w") + if copy: + dest = goto_path + dupe = backup_path + else: + dest = backup_path + dupe = None + + handle = open(dest, "w") handle.write(first_template % (goto_name, now_string, @@ -225,6 +233,10 @@ handle.close() - if copy: - shutil.copy2(backup_path, goto_path) + if dupe: + shutil.copy2(dest, dupe) + print "\nCopied from %s to %s." % (dest, dupe), + sys.stdout.flush() + + time.sleep(1) return points