-2

There is no problem with vscode running the file directly, but if there is an error in debugging the file [WinError 3] the system cannot find the specified path. : '../image/ocean_input/', as shown in the figure. enter image description here

How can i solve this problem?

tjx
  • 7
  • 1

1 Answers1

0

Note the current working directory of your running python process.

  • When you run directly, you may mean python main.py, which the pwd is [some long text]/implement, thus ../image/ocean_input is correct.
  • When you are debugging, you may run python under project root directory, which make ../image looking for something else, thus not found.
Geno Chen
  • 4,916
  • 6
  • 21
  • 39