There is src
folder witn env
and main.py
. I create log file like next and saw file in parent folder of src
from loguru import logger
logger.add("logs.txt")
In the other hand like this and file into src
dirname = path.dirname(__file__)
log_path = path.join(dirname, "logs.txt")
logger.add(log_path)
What is responsible to root folder when path is only filename? I need to create some files into src
. I have copy-past code of dirname calculation to each of them. Looks like mistake.