Skip to content
Snippets Groups Projects
defaults.py 456 B
Newer Older
from pathlib import Path

root = Path('c:/Users/rhodes/projects/proj0015-model-server/resources')
paths = {
    'logs': root / 'logs' / 'session',
    'inbound_images': root / 'images' / 'inbound',
    'outbound_images': root / 'images' / 'outbound',
    'ilastik_projects': root / 'ilastik',
}

for gk in paths.keys():
    paths[gk].mkdir(parents=True, exist_ok=True)

# TODO: consider configuring paths via API, and this just becomes a HTTP client script