server: create a misc folder in the datapath

This folder contains miscellaneous files used by Moonraker
or other applications in the Klipper ecosystem.

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Eric Callahan 2024-01-02 12:48:53 -05:00
parent 2cebf5cc03
commit 088a7e4e70
No known key found for this signature in database
GPG Key ID: 5A1EB336DFB4C71B
1 changed files with 3 additions and 0 deletions

View File

@ -608,6 +608,9 @@ def main(from_package: bool = True) -> None:
if not comms_dir.exists():
comms_dir.mkdir()
unix_sock = str(comms_dir.joinpath("moonraker.sock"))
misc_dir = data_path.joinpath("misc")
if not misc_dir.exists():
misc_dir.mkdir()
app_args = {
"data_path": str(data_path),
"is_default_data_path": cmd_line_args.datapath is None,