mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-26 01:46:18 -05:00
A Channel can be tagged with a single Tag. The Channel can be moved into a Tag Directory according to the config.
This commit is contained in:
parent
2b8ef79561
commit
45167e4f32
39 changed files with 691 additions and 165 deletions
|
|
@ -19,7 +19,7 @@ logger = logger.getChild(__name__)
|
|||
|
||||
|
||||
def get_map_directory() -> Path:
|
||||
map_directory = get_media_directory() / get_wrolpi_config().map_directory
|
||||
map_directory = get_media_directory() / get_wrolpi_config().map_destination
|
||||
if not map_directory.is_dir():
|
||||
map_directory.mkdir(parents=True)
|
||||
return map_directory
|
||||
|
|
|
|||
|
|
@ -107,7 +107,7 @@ def test_get_custom_map_directory(test_directory, test_config):
|
|||
# Default location.
|
||||
assert lib.get_map_directory() == (test_directory / 'map')
|
||||
|
||||
get_wrolpi_config().map_directory = 'custom/deep/map/directory'
|
||||
get_wrolpi_config().map_destination = 'custom/deep/map/directory'
|
||||
|
||||
assert lib.get_map_directory() == (test_directory / 'custom/deep/map/directory')
|
||||
assert (test_directory / 'custom/deep/map/directory').is_dir()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue