Fix directories

This commit is contained in:
caryoscelus 2024-05-07 20:58:26 +00:00
parent bdddf58712
commit d8b06a28bb
No known key found for this signature in database
GPG key ID: 254EDDB85B66CB1F
3 changed files with 3 additions and 3 deletions

View file

@ -153,7 +153,7 @@ content_dbs = {}
def getContentDb(path=None):
if not path:
path = config.data_dir / 'content.db'
path = config.start_dir / 'content.db'
if path not in content_dbs:
content_dbs[path] = ContentDb(path)
content_dbs[path].init()

View file

@ -129,7 +129,7 @@ def init():
if config.action == "main":
from util import helper
try:
lock = helper.openLocked(config.data_dir / 'lock.pid', "w")
lock = helper.openLocked(config.start_dir / 'lock.pid', "w")
lock.write(f"{os.getpid()}")
except BlockingIOError as err:
startupError(f"Can't open lock file, your 0net client is probably already running, exiting... ({err})")