When running python GuiMain.py on macOS ( M1 Mac on macOS 12.1 Monterey using python 3.9.10),
pathlib.Path('~')
doesn't seem to refer to the home folder correctly, and the error "Failed to initialize log file" is shown. Using
pathlib.Path.home()
seems to have fixed the issue.
When running
python GuiMain.py
on macOS ( M1 Mac on macOS 12.1 Monterey using python 3.9.10),pathlib.Path('~')
doesn't seem to refer to the home folder correctly, and the error "Failed to initialize log file" is shown. Usingpathlib.Path.home()
seems to have fixed the issue.