How to set the default working directory for run configurations in PyCharm
<p>When I want to run one of our many python scripts I hit run, which creates a new run configuration. The working directory for that configuration is the folder in which the python script file resides. Instead, it should run from a project wide fixed folder. I'd like to set that somehow but I really cannot figure out why, which is a bit odd as I'd expect many people to want to have this functionality.
Do you know how to pull this off?</p>

<p>If you hit the <code>Edit configurations...</code> button in the submenu appearing when clicking on your currently selected run configuration in the top right of PyCharm, you are able to edit the fields (and therefore also the working directory) of Python run configurations by selecting <code>Python</code> from the <code>Defaults</code> and specifying the desired values. (Don't forget to hit <code>Apply</code>/<code>OK</code> before creating new run configurations which should contain the default values!)</p>

<p>As far as I know, these defaults are local to one project.
See also: <a href="https://www.jetbrains.com/help/pycharm/2016.2/creating-and-editing-run-debug-configurations.html" rel="nofollow">https://www.jetbrains.com/help/pycharm/2016.2/creating-and-editing-run-debug-configurations.html</a></p>

python pycharm run-configuration