luizribeiro / mariner

Web interface for controlling MSLA 3D Printers based on Chitu controllers, such as the ones by Elegoo and Phrozen.
MIT License
246 stars 65 forks source link

The settings in ~/.mariner/config.toml file are ignored #532

Open al37919 opened 2 years ago

al37919 commented 2 years ago

Path("~/.mariner/config.toml")

in config.py is handled incorrectly. So, the settings in ~/.mariner/config.toml file are ignored.

For explanation see: https://stackoverflow.com/questions/2057045/os-makedirs-doesnt-understand-in-my-path

Possible solution --- replace:

Path("~/.mariner/config.toml")

with

Path(os.path.expanduser("~/.mariner/config.toml"))