Niv Sardi
defaults: cleanup
41bc6bd
raw
history blame
1 kB
#!/usr/bin/env python
import os
def D(n, d):
return os.environ.get(f'SPOOF_{n}') or d
DATA_PATH = D('DATA_PATH', './data')
LABELS_PATH = D('LABELS_PATH', f'{DATA_PATH}/labels')
IMAGES_PATH = D('IMAGES_PATH', f'{DATA_PATH}/images')
CERTS_PATH = D('CERTS_PATH', f'{DATA_PATH}/certs')
SQUARES_DATA_PATH = D('SQUARES_DATA_PATH', f'{DATA_PATH}/squares')
SQUARES_LABELS_PATH = D('SQUARES_LABELS_PATH', f'{SQUARES_DATA_PATH}/labels')
SQUARES_IMAGES_PATH = D('SQUARES_IMAGES_PATH', f'{SQUARES_DATA_PATH}/images')
DEBUG_PATH = D('DEBUG_PATH', f'{DATA_PATH}/debug')
DEBUG_SQUARES_PATH = D('DEBUG_SQUARES_PATH', f'{DEBUG_PATH}/squares')
LOGOS_DATA_PATH = D('LOGOS_DATA_PATH', f'{DATA_PATH}/logos')
AUGMENTED_DATA_PATH = D('AUGMENTED_DATA_PATH', f'{DATA_PATH}/augmented')
AUGMENTED_LABELS_PATH = D('AUGMENTED_LABELS_PATH', f'{AUGMENTED_DATA_PATH}/labels')
AUGMENTED_IMAGES_PATH = D('AUGMENTED_IMAGES_PATH', f'{AUGMENTED_DATA_PATH}/images')
MAIN_CSV_PATH = D('MAIN_CSV_PATH', f'{DATA_PATH}/entities.csv')