58 lines
1.1 KiB
Markdown
58 lines
1.1 KiB
Markdown
# `src/core/config.py`
|
|
|
|
Configuration for Curator.
|
|
|
|
Two stores, by responsibility:
|
|
|
|
1. Global config (`.Curator.!gtag` next to Curator.py) — **application data
|
|
only**: window state, MRU folders, and the pointers to where the pool and the
|
|
Filmotéka output live (`pool_dir` / `filmoteka_dir`). Those pointers must
|
|
stay here because the pool index is found *through* them.
|
|
2. Pool index (`<pool>/.Curator.!index`, see `pool_index.py`) — everything
|
|
describing a particular library: per-movie metadata **and** library-level
|
|
settings (`tag_schema`, `copyasis_folders`). It travels with the pool.
|
|
|
|
Source: [`src/core/config.py`](../../src/core/config.py)
|
|
|
|
## Functions
|
|
|
|
### `load_global_config`
|
|
|
|
*function · line 68*
|
|
|
|
```python
|
|
load_global_config() -> dict
|
|
```
|
|
|
|
Load global application config
|
|
|
|
### `save_global_config`
|
|
|
|
*function · line 84*
|
|
|
|
```python
|
|
save_global_config(cfg: dict)
|
|
```
|
|
|
|
Save global application config
|
|
|
|
### `load_config`
|
|
|
|
*function · line 94*
|
|
|
|
```python
|
|
load_config()
|
|
```
|
|
|
|
Legacy function - returns global config
|
|
|
|
### `save_config`
|
|
|
|
*function · line 99*
|
|
|
|
```python
|
|
save_config(cfg: dict)
|
|
```
|
|
|
|
Legacy function - saves global config
|