Python Forum

Full Version: FileNotFoundError in newly structured Python project
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

I have restructured my existing python 3.6 project and it's folders look like as the attached file.
Inside the utils folder there is a python script which generates a csv file inside the categories folder.
Now issue I am facing is that when I run the script from utils folder,it is unable to generate csv in categories folder-
FileNotFoundError: [Errno 2] No such file or directory: 'categories/abc.csv'
Can anyone correct this path issue?

Ohh I found my answer.I was giving wrong path. Now it is resolved.