From 148b1b22c81ea87d1677058b79e0a97d40e1a69e Mon Sep 17 00:00:00 2001 From: Ian Weller Date: Sat, 4 Oct 2008 16:21:19 -0500 Subject: Add config file location cmdline option --- fedora_business_cards/frontend.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fedora_business_cards/frontend.py b/fedora_business_cards/frontend.py index 05a1317..5306e69 100644 --- a/fedora_business_cards/frontend.py +++ b/fedora_business_cards/frontend.py @@ -62,8 +62,11 @@ def cmdline(): action="store_const", help="Export as PNG (default)") parser.add_option("--svg", dest="output", default="png", const="svg", action="store_const", help="Export as SVG") + parser.add_option("-c", "--config", dest="config_location", default="", + help="Location of config.ini configuration file") options = parser.parse_args()[0] # check what templates are available + config.parser.read(options.config_location) templates_dir = config.parser.get('location', 'templates') contents = os.listdir(templates_dir) checked_once = [] -- cgit