dicogis.utils.app_dir module

Per-user application folder, where DicoGIS keeps its settings and logs.

dicogis.utils.app_dir.get_app_dir(app_name='DicoGIS')

Return the per-user application folder.

Same location as typer.get_app_dir(app_name, force_posix=True), used by earlier versions, so existing settings and logs are found again, without depending on Typer (absent from QGIS’s Python environment):

  • Windows: %APPDATA%<app_name>, or ~<app_name> if APPDATA is unset

  • elsewhere: ~/.<app_name>, lowercase, spaces replaced by hyphens

The folder is not created.

Parameters:

app_name (str) – application name. Defaults to DicoGIS.

Return type:

Path

Returns:

path to the application folder