From db8e5f9005cf24a46469a100e0b375ac36774f1e Mon Sep 17 00:00:00 2001 From: Jacob Daniel Bennett Date: Fri, 28 Aug 2020 10:24:52 -0400 Subject: [PATCH] Readability Improvement from previous push --- api/ECNQueue.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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