duck.storageยถ
Defines and provides the storage directory for Duck-related data and configuration files.
Module Contentsยถ
Functionsยถ
Returns the Base Directory for Duck project based on environment variable |
|
Returns the absolute path of the Duck storage directory. |
Dataยถ
APIยถ
- duck.storage.BaseDir() pathlib.Path[source]ยถ
Returns the Base Directory for Duck project based on environment variable
DUCK_SETTINGS_MODULE.Notes:
This useful if you want to have the same base directory everywhere nomatter which settings you are using.
- duck.storage.duck_storageยถ
โget_duck_storage(โฆ)โ
- duck.storage.get_duck_storage() str[source]ยถ
Returns the absolute path of the Duck storage directory.
This directory is intended for storing data, configuration files, or other resources required by the Duck application. The path is resolved based on the current location of this file.
- Returns:
The absolute path to the Duck storage directory.
- Return type:
str