Change working directory of console in PyCharm
19,260
Settings → Build Execution Deployment → Console → Python Console
Related videos on Youtube
Author by
allenlin1992
Software developer (Python/SQL/some JavaScript) interested in finance and cryptocurrencies.
Updated on June 18, 2022Comments
-
allenlin1992 about 2 years
How do I change the default working directory when I open a new Python Console? I have multiple projects open in my PyCharm view and the Python Console seems to be defaulting to an arbitrary one. Of course I can work around by modifying
sys.path
but I want a definite solution. Using Windows. -
lostdorje over 6 yearsI did this and refreshed/restarted the console. No luck. However, when I restarted the entire pycharm app it worked.
-
Sumax almost 4 yearsWorked after refreshing the
Python Console
andTerminal
.