diff --git a/api/ECNQueue.py b/api/ECNQueue.py index 4347464..b73fd77 100644 --- a/api/ECNQueue.py +++ b/api/ECNQueue.py @@ -14,8 +14,10 @@ #------------------------------------------------------------------------------# # The directory where queue items are -queueDirectory = os.path.join(os.path.dirname(os.path.dirname(__file__)), "q-snapshot") -#print(os.path.join(os.path.dirname(os.path.dirname(__file__)), "q-snapshot")) +CurrentFilePath = __file__ +CurrentFileDirectory = os.path.dirname(CurrentFilePath) +CurrentFileDirectoryParent = os.path.dirname(CurrentFileDirectory) +queueDirectory = os.path.join(CurrentFileDirectoryParent, "q-snapshot") # Queues to not load in getQueues() queuesToIgnore = ["archives", "drafts", "inbox"] @@ -343,4 +345,4 @@ def getQueues() -> list: if isDirectory and isValid: queues.append(Queue(file)) - return queues + return queues \ No newline at end of file