Onionr/src/filepaths/__init__.py

15 lines
373 B
Python
Raw Permalink 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-09-11 03:56:20 +00:00
config_file = home + 'config.json'
lock_file = home + 'onionr.lock'
pid_file = home + 'onionr.pid'
2019-07-18 17:40:48 +00:00
log_file = home + 'onionr.log'