Onionr/src/filepaths/__init__.py

34 lines
921 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__)) + '/../../'
gossip_server_socket_file = home + 'gossip-server.sock'
2019-07-18 05:11:52 +00:00
usage_file = home + 'disk-usage.txt'
2019-07-25 16:14:13 +00:00
contacts_location = home + 'contacts/'
2019-07-20 00:41:15 +00:00
cached_storage = home + 'cachedstorage.dat'
2019-07-27 02:42:55 +00:00
export_location = home + 'block-export/'
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'
pid_file = home + 'onionr.pid'
2019-07-18 17:40:48 +00:00
site_cache = home + 'onionr-sites.txt'
tor_hs_loc = home + 'hs/'
2019-07-18 17:40:48 +00:00
tor_hs_address_file = home + 'hs/hostname'
keys_file = home + 'keys.txt'
onboarding_mark_file = home + 'onboarding-completed'
log_file = home + 'onionr.log'
ephemeral_services_file = home + 'ephemeral-services.list'
restarting_indicator = home + "is-restarting"