summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIan Weller <ianweller@gmail.com>2008-10-04 16:21:19 -0500
committerIan Weller <ianweller@gmail.com>2008-10-04 16:21:19 -0500
commit148b1b22c81ea87d1677058b79e0a97d40e1a69e (patch)
treebb23feb3a7ee83a170f81dd7d55258464b54f517
parentbafc29ee4dfe9df0b17a0130be36fdf1ea4ca520 (diff)
downloadfedora-business-cards-148b1b22c81ea87d1677058b79e0a97d40e1a69e.zip
fedora-business-cards-148b1b22c81ea87d1677058b79e0a97d40e1a69e.tar.gz
fedora-business-cards-148b1b22c81ea87d1677058b79e0a97d40e1a69e.tar.xz
Add config file location cmdline option
-rw-r--r--fedora_business_cards/frontend.py3
1 files changed, 3 insertions, 0 deletions
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 = []