From a2fb410892ddcf099709758540cbd2cfd625e403 Mon Sep 17 00:00:00 2001 From: Troy Sankey Date: Tue, 27 Sep 2016 14:09:20 -0400 Subject: [PATCH] make sure the current working dir is in the sys.path --- locust/main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/locust/main.py b/locust/main.py index ba57010361..fc073d870f 100644 --- a/locust/main.py +++ b/locust/main.py @@ -298,6 +298,8 @@ def load_locustfile(path): dictionary of ``{'name': callable}`` containing all callables which pass the "is a Locust" test. """ + # Start with making sure the current working dir is in the sys.path + sys.path.insert(0, os.getcwd()) # Get directory and locustfile name directory, locustfile = os.path.split(path) # If the directory isn't in the PYTHONPATH, add it so our import will work