Pycharm debug configuration adds script path

Using Version 2018.1.1 on Mac, I set a debug configuration for a script, and in my configuration I set the working directory to be different from script directory. However, whenever running the script with the configuration, the path to the script is added to sys.path.

I have no issue running in console with different directly, however I can't get configuration for debug/run to respect the working directory.

Any ideas?


1 comment
Comment actions Permalink

So far what you describe is expected behavior. What issues does it cause?

Try the following script:

import os; print(os.getcwd())

It should output the working directory you had configured in your run/debug configuration.

Is this not true for you?


Please sign in to leave a comment.