Skip to content

Commit

Permalink
Added controllers dir to syspath
Browse files Browse the repository at this point in the history
  • Loading branch information
JosepSampe committed Sep 29, 2017
1 parent 8551e3c commit 01958cb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions api/api/startup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ def run():
are stopped, so we need to ensure the correct values in redis.
"""

# Add source directories to sys path
sys.path.insert(0, settings.CONTROLLERS_DIR)

r = redis.Redis(connection_pool=settings.REDIS_CON_POOL)

# Workload metric definitions
Expand Down

0 comments on commit 01958cb

Please sign in to comment.