Onionr/src/filepaths/__init__.py

32 lines
853 B
Python
Raw Normal View History

2019-07-18 05:11:52 +00:00
from utils import identifyhome
2019-09-20 16:25:12 +00:00
import os
2019-07-18 05:11:52 +00:00
home = identifyhome.identify_home()
2019-07-18 17:40:48 +00:00
if not home.endswith('/'): home += '/'
2019-07-18 05:11:52 +00:00
2019-09-20 16:25:12 +00:00
app_root = os.path.dirname(os.path.realpath(__file__)) + '/../../'
2019-07-18 05:11:52 +00:00
usage_file = home + 'disk-usage.txt'
block_data_location = home + 'blocks/'
2021-02-22 07:44:17 +00:00
2019-07-18 05:11:52 +00:00
private_API_host_file = home + 'private-host.txt'
2021-02-22 07:44:17 +00:00
2019-07-20 00:41:15 +00:00
cached_storage = home + 'cachedstorage.dat'
2019-08-02 23:00:04 +00:00
announce_cache = home + 'announcecache.dat'
upload_list = home + 'upload-list.json'
2019-09-11 03:56:20 +00:00
config_file = home + 'config.json'
daemon_mark_file = home + '/daemon-true.txt'
lock_file = home + 'onionr.lock'
2019-07-18 17:40:48 +00:00
main_safedb = home + "main.safe.db"
2019-07-19 04:59:44 +00:00
data_nonce_file = home + 'block-nonces.dat'
onboarding_mark_file = home + 'onboarding-completed'
log_file = home + 'onionr.log'
restarting_indicator = home + "is-restarting"
secure_erase_key_file = home + "erase-key"
master_db_location = home + "database/"