Can't open file in VS Code but it works on CMD #125
-
Hello, how are you guys? I'm new to Python so this may be a noobie question: Any ideias of what is happening? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
In the command line you are doing cd into the working folder where the sav file is, thats why python finds it. In Vscode you are in another folder when executing, thats why it cannot find it. When opening the sav file, give the full path (r'C:\blah\blah\fioe.sav) or, in the Vscode terminal cd into the working folder as you do in CMD |
Beta Was this translation helpful? Give feedback.
In the command line you are doing cd into the working folder where the sav file is, thats why python finds it.
In Vscode you are in another folder when executing, thats why it cannot find it.
When opening the sav file, give the full path (r'C:\blah\blah\fioe.sav) or, in the Vscode terminal cd into the working folder as you do in CMD