Search code examples
directorypycharm

Working directory error


I am working with PyCharm 4.04. Since I installed it, every time I open it, as default directory I get this:

C:\Users\Laura\AppData\Local\Temp\main.py1.tmp>cd

Which gives me an error when trying to use the console:

Error:Cannot start process, the path specified for working directory is not a directory

But even if I change the directory, the message does not disappear.

The terminal, though, it does work and I can run projects, but I would like to use the console.


Solution

  • I finally solved the problem.

    I think it all started because the first project that I opened with pycharm was in my "download" folder, so the working directory was automatically set to a temporal folder by default and allthough I moved the project to another folder and I manually changed the working directory from the terminal, it was not working.

    The solution was creating a new project and giving a correct path to the new project. It seems very easy but it was not that obvious.