Skip to content

Commit

Permalink
Merge pull request #38 from ECN/Enhancement-Relative-Path-DIrectory-i…
Browse files Browse the repository at this point in the history
…n-ECN-Queue-Module

Enhancement-Relative-Path-Directory-in-ECN-Queue-module to master
  • Loading branch information
benne238 authored Aug 28, 2020
2 parents 648aa65 + f93dd99 commit 4ddd818
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions api/ECNQueue.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down Expand Up @@ -342,4 +345,4 @@ def getQueues() -> list:
if isDirectory and isValid:
queues.append(Queue(file))

return queues
return queues

0 comments on commit 4ddd818

Please sign in to comment.