diff --git a/api/ECNQueue.py b/api/ECNQueue.py index 0c431a3..caba91f 100644 --- a/api/ECNQueue.py +++ b/api/ECNQueue.py @@ -14,7 +14,10 @@ #------------------------------------------------------------------------------# # The directory where queue items are -queueDirectory = "/Users/justincampbell/GitHub/ecn-queue/webqueue/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"] @@ -342,4 +345,4 @@ def getQueues() -> list: if isDirectory and isValid: queues.append(Queue(file)) - return queues + return queues \ No newline at end of file