From f38f2a442e536d1e08e9c710b9383b2f08e909c4 Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Sat, 2 Jan 2016 09:18:05 -0800 Subject: [PATCH] Add CWD to path to allow usage on current dir --- daphne/cli.py | 1 + 1 file changed, 1 insertion(+) diff --git a/daphne/cli.py b/daphne/cli.py index 9d368c2..dcfc8e1 100755 --- a/daphne/cli.py +++ b/daphne/cli.py @@ -69,6 +69,7 @@ class CommandLineInterface(object): format = "%(asctime)-15s %(levelname)-8s %(message)s" , ) # Import channel layer + sys.path.insert(0, ".") module_path, object_path = args.channel_layer.split(":", 1) channel_layer = importlib.import_module(module_path) for bit in object_path.split("."):