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.")