From c90b8f53c483055f61da794786bf07268b0b0acb Mon Sep 17 00:00:00 2001 From: ville rantanen Date: Thu, 14 Aug 2014 20:47:15 +0300 Subject: [PATCH] writeconfig exits after writing --- Qalbum.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Qalbum.py b/Qalbum.py index 422e6cc..665f63e 100755 --- a/Qalbum.py +++ b/Qalbum.py @@ -27,7 +27,7 @@ from datetime import datetime # (c) ville.rantanen@helsinki.fi -__version__='2.20140630' +__version__='2.20140814' FILECONFIG=".config" FILEDESC="descriptions.csv" @@ -493,7 +493,7 @@ def setupoptions(): parser.add_argument("--version",action='version', version=__version__) parser.add_argument("-c",action="store_true",dest="writeconfig",default=False, help="Write current configuration to file "+FILECONFIG+ - ". If file exists, Qalbum and thumbnail handling read from the file, "+ + " and exit. If file exists, settings read from the file, "+ "overriding switches.") parser.add_argument("-r",action="store_true",dest="reverse",default=False, help="Reverse sort orded") @@ -594,6 +594,7 @@ def execute_plain(): options=setupdefaultoptions(options) if options.writeconfig: writeconfig(options) + sys.exit(0) # Copy all resources to target folder pathname=os.path.dirname(os.path.realpath(sys.argv[0])) fullpath=os.path.abspath(pathname)