changeset 5:8da675d9f525

parpg.py will create a copy of parpg.cfg.default if that file is present and it can't find a parpg.cfg file.
author KarstenBock@gmx.net
date Thu, 12 Jan 2012 19:57:38 +0100
parents 6ad756581ef1
children 0897c89da4fe
files parpg.py
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/parpg.py	Thu Jan 12 18:51:18 2012 +0100
+++ b/parpg.py	Thu Jan 12 19:57:38 2012 +0100
@@ -36,6 +36,10 @@
 if not args:
     if path.isfile("./parpg.cfg"):
         args =(".")
+    elif path.isfile("./parpg.cfg.default"):
+        import shutil
+        shutil.copyfile("./parpg.cfg.default", "./parpg.cfg")
+        args =(".")
     else:
         parser.print_help()
         sys.exit(1)