mirror of
https://github.com/django/daphne.git
synced 2024-11-21 23:46:33 +03:00
Add CWD to path to allow usage on current dir
This commit is contained in:
parent
5033e24804
commit
f38f2a442e
|
@ -69,6 +69,7 @@ class CommandLineInterface(object):
|
||||||
format = "%(asctime)-15s %(levelname)-8s %(message)s" ,
|
format = "%(asctime)-15s %(levelname)-8s %(message)s" ,
|
||||||
)
|
)
|
||||||
# Import channel layer
|
# Import channel layer
|
||||||
|
sys.path.insert(0, ".")
|
||||||
module_path, object_path = args.channel_layer.split(":", 1)
|
module_path, object_path = args.channel_layer.split(":", 1)
|
||||||
channel_layer = importlib.import_module(module_path)
|
channel_layer = importlib.import_module(module_path)
|
||||||
for bit in object_path.split("."):
|
for bit in object_path.split("."):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user