FileNotFoundError in newly structured Python project - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: FileNotFoundError in newly structured Python project (/thread-10491.html) |
FileNotFoundError in newly structured Python project - PrateekG - May-23-2018 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. |