Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Switched config file loading to import lib to allow dotted "paths" to…

… settings modules
  • Loading branch information...
commit ba57f104ffd74fa707c7f6ddc03dfb1630dd212e 1 parent 5fd85ec
Ulrich Petri ulope authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  rq/scripts/__init__.py
3  rq/scripts/__init__.py
View
@@ -1,3 +1,4 @@
+import importlib
import redis
from rq import use_connection
@@ -19,7 +20,7 @@ def add_standard_arguments(parser):
def read_config_file(module):
"""Reads all UPPERCASE variables defined in the given module file."""
- settings = __import__(module, [], [], [], -1)
+ settings = importlib.import_module(module)
return dict([(k, v)
for k, v in settings.__dict__.items()
if k.upper() == k])
Please sign in to comment.
Something went wrong with that request. Please try again.