Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

support optional argument for configuration file

  • Loading branch information...
commit 4a84a39879af59479d3f53c800c189344f00e03b 1 parent 3432d2b
@posativ authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 regenwolken/__init__.py
View
4 regenwolken/__init__.py
@@ -38,6 +38,10 @@ def __init__(self):
self.config.from_object('regenwolken.utils.conf')
self.config.from_envvar('REGENWOLKEN_SETTINGS', silent=True)
+ if len(sys.argv) > 1:
+ path = sys.argv[1] if sys.argv[1].startswith('/') else '../' + sys.argv[1]
+ self.config.from_pyfile(path, silent=True)
+
self.setup_routes()
self.setup_mongodb()
self.setup_extensions()
Please sign in to comment.
Something went wrong with that request. Please try again.