From 128be8df894995176d13ff596f6e0e1ee192c2bc Mon Sep 17 00:00:00 2001 From: Fabian Dill Date: Fri, 6 Mar 2020 04:52:21 +0100 Subject: [PATCH] don't set cwd on import --- MultiClient.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/MultiClient.py b/MultiClient.py index b0d0d8c7..635d3073 100644 --- a/MultiClient.py +++ b/MultiClient.py @@ -8,7 +8,8 @@ import atexit import sys import os -os.chdir(os.path.split(sys.argv[0])[0]) # set to local folder, so that options yamls can be found +if __name__ == "__main__": + os.chdir(os.path.split(sys.argv[0])[0]) # set to local folder, so that options yamls can be found exit_func = atexit.register(input, "Press enter to close.")