TISbackup/config.py

10 lines
344 B
Python
Raw Normal View History

2024-11-28 23:20:19 +01:00
import os
import sys
2015-07-08 16:02:14 +02:00
2024-11-28 23:20:19 +01:00
from huey.contrib.sql_huey import SqlHuey
from huey.storage import SqliteStorage
2015-07-08 16:02:14 +02:00
tisbackup_root_dir = os.path.abspath(os.path.join(os.path.dirname(__file__)))
2024-11-28 23:20:19 +01:00
tasks_db = os.path.join(tisbackup_root_dir, "tasks.sqlite")
huey = SqlHuey(name="tisbackups", filename=tasks_db, always_eager=False, storage_class=SqliteStorage)