-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.py
More file actions
21 lines (17 loc) · 787 Bytes
/
settings.py
File metadata and controls
21 lines (17 loc) · 787 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
"""
settings.py
-- load configration
"""
import os
import configparser
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
config = configparser.ConfigParser(allow_no_value=True)
config.read(os.path.join(BASE_DIR,"uavsar_processing.cfg"))
WORKING_DIR = os.path.expanduser(config.get('general','WORKING_DIR'))
PRODUCT_DIR = os.path.expanduser(config.get('general','PRODUCT_DIR'))
KML_DIR = os.path.expanduser(config.get('general','KML_DIR'))
THUMBNAIL_DIR = os.path.expanduser(config.get('general','THUMBNAIL_DIR'))
ANN_DIR = os.path.expanduser(config.get('general','ANN_DIR'))
HIGHRES_DIR = os.path.expanduser(config.get('general','HIGHRES_DIR'))
COLOR_DIR = os.path.expanduser(config.get('general','COLOR_DIR'))
LOG_DIR = os.path.expanduser(config.get('general','LOG_DIR'))