diff --git a/locust/main.py b/locust/main.py index 9078c63261..6e7fe75feb 100644 --- a/locust/main.py +++ b/locust/main.py @@ -344,6 +344,8 @@ def __import_locustfile__(filename, path): return imported + # 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