Quellcode durchsuchen

resolve storage path to get absolute paths

Falko Schindler vor 1 Jahr
Ursprung
Commit
26dc3a14dc
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      nicegui/globals.py

+ 1 - 1
nicegui/globals.py

@@ -49,7 +49,7 @@ tailwind: bool
 prod_js: bool
 endpoint_documentation: Literal['none', 'internal', 'page', 'all'] = 'none'
 air: Optional[Air] = None
-storage_path: Path = Path(os.environ.get('NICEGUI_STORAGE_PATH', '.nicegui'))
+storage_path: Path = Path(os.environ.get('NICEGUI_STORAGE_PATH', '.nicegui')).resolve()
 socket_io_js_query_params: Dict = {}
 socket_io_js_extra_headers: Dict = {}
 # NOTE we favor websocket over polling