Change working directory of console in PyCharm

19,260

Settings → Build Execution Deployment → Console → Python Console

Share:
19,260

Related videos on Youtube

allenlin1992
Author by

allenlin1992

Software developer (Python/SQL/some JavaScript) interested in finance and cryptocurrencies.

Updated on June 18, 2022

Comments

  • allenlin1992
    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
    lostdorje over 6 years
    I did this and refreshed/restarted the console. No luck. However, when I restarted the entire pycharm app it worked.
  • Sumax
    Sumax almost 4 years
    Worked after refreshing the Python Console and Terminal.