ordigi/dozo/constants.py

36 lines
1.0 KiB
Python
Raw Normal View History

2016-01-08 23:49:06 +01:00
"""
Settings.
2016-01-08 23:49:06 +01:00
"""
from os import environ, path
from sys import version_info
2016-01-08 23:49:06 +01:00
#: If True, debug messages will be printed.
2016-01-27 16:27:12 +01:00
debug = False
2016-01-08 23:49:06 +01:00
#: Directory in which to store Dozo settings.
application_directory = '{}/.dozo'.format(path.expanduser('~'))
default_path = '{%Y-%m-%b}/{album}|{city}|{"Unknown Location"}'
2021-08-08 12:43:17 +02:00
default_name = '{%Y-%m-%d_%H-%M-%S}-{name}-{title}.%l{ext}'
default_geocoder = 'Nominatim'
# Checksum storage file.
hash_db = 'hash.json'
# TODO will be removed eventualy later
# hash_db = '{}/hash.json'.format(application_directory)
2016-01-08 23:49:06 +01:00
# Geolocation details file.
location_db = 'location.json'
# TODO will be removed eventualy later
# location_db = '{}/location.json'.format(application_directory)
2016-01-08 23:49:06 +01:00
# Dozo installation directory.
script_directory = path.dirname(path.dirname(path.abspath(__file__)))
2016-01-08 23:49:06 +01:00
#: Accepted language in responses from MapQuest
accepted_language = 'en'
# check python version, required in filesystem.py to trigger appropriate method
python_version = version_info.major
2021-04-16 20:02:14 +02:00
CONFIG_FILE = '%s/config.ini' % application_directory