pycharm script can't find files

python script A finds and reads a file just fine, however python script B gives the following error:

FileNotFoundError: [Errno 2] No such file or directory: 'data/scrape.csv'

I've tried the invalidate/restart cache and it still has the same issue.   If I run the script in the terminal it can find it. Any suggestions?

1 comment

Please check working directory in the run/debug configuration of script B, and make sure the path to file in the code is specified starting from that working directory.


Please sign in to leave a comment.