wangzixin1940 / Python-Utilities

Python Utilities is a useful tool integration box that can help you do various things.
GNU General Public License v3.0
1 stars 0 forks source link

FileNotFoundError: [Errno 2] No such file or directory: 'path/to/script/Python-Utilities/logs/yyyy-mm-dd.log' at main.py #2

Open wangzixin1940 opened 2 months ago

wangzixin1940 commented 2 months ago

This bug like this: 截屏2024-07-09 14 29 11 Reason: My. gitignore file has the following fragments:

# Custom
logs/
.vscode/
/TODO.MD

Because this piece of code (logs/), the logs folder is blocked because it is empty and has not been submitted to the repository. So, in order for the code to run properly, it is necessary to create a new logs folder (both the root directory and the release/en-US folder must be created) Then right click, press New->Folder or New Folder. Or run shell script in the root directory:

mkdir logs
cd release/en-US
mkdir logs

Everything will be normal.