Add CWD to path to allow usage on current dir

This commit is contained in:
Andrew Godwin 2016-01-02 09:18:05 -08:00
parent 5033e24804
commit f38f2a442e

View File

@ -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("."):