Bläddra i källkod

resolve storage path to get absolute paths

Falko Schindler 1 år sedan
förälder
incheckning
26dc3a14dc
1 ändrade filer med 1 tillägg och 1 borttagningar
  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