Skip to content
Browse files

add rwctl '--conf' flag for regenwolken.cfg

  • Loading branch information...
1 parent f287f59 commit 958aec7970c08a9190d86abd8f9bdfda4ba50a1e @posativ committed Aug 30, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 regenwolken/manage.py
View
5 regenwolken/manage.py
@@ -261,6 +261,8 @@ def main():
default=False, help='purge account and its files'),
make_option('--all', dest='all', action='store_true',
default=False, help='select ALL'),
+ make_option('--conf', dest="conf", default="regenwolken.cfg", metavar="FILE",
+ help="regenwolken configuration")
]
parser = OptionParser(option_list=options, usage=usage)
@@ -274,6 +276,9 @@ def main():
app.config.from_object('regenwolken.utils.conf')
app.config.from_envvar('REGENWOLKEN_SETTINGS', silent=True)
+ path = options.conf if options.conf.startswith('/') else '../' + options.conf
+ app.config.from_pyfile(path, silent=True)
+
if 'info' in args:
info(app.config)
elif 'account' in args:

0 comments on commit 958aec7

Please sign in to comment.
Something went wrong with that request. Please try again.