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 committed 2024-02-01 10:27:20 -05:00
1 parent 2cebf5cc03
commit 088a7e4e70
1 file changed
+3
+3
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,