From ac445b5a3e5156a00e75a43b95946098467beda8 Mon Sep 17 00:00:00 2001 From: Joshua Hesketh Date: Wed, 14 Aug 2013 12:55:22 +1000 Subject: [PATCH] Fix module path --- .../task_plugins/gate_real_db_upgrade/handle_results.py | 2 +- turbo_hipster/task_plugins/gate_real_db_upgrade/task.py | 5 +++-- turbo_hipster/worker_server.py | 2 ++ 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/turbo_hipster/task_plugins/gate_real_db_upgrade/handle_results.py b/turbo_hipster/task_plugins/gate_real_db_upgrade/handle_results.py index 6fddda6..b5591ae 100644 --- a/turbo_hipster/task_plugins/gate_real_db_upgrade/handle_results.py +++ b/turbo_hipster/task_plugins/gate_real_db_upgrade/handle_results.py @@ -18,7 +18,7 @@ Primarily place the log files somewhere useful and optionally email somebody """ -from lib.utils import push_file +from turbo_hipster.lib.utils import push_file import tempfile import os import re diff --git a/turbo_hipster/task_plugins/gate_real_db_upgrade/task.py b/turbo_hipster/task_plugins/gate_real_db_upgrade/task.py index b9f6b67..ac53db8 100644 --- a/turbo_hipster/task_plugins/gate_real_db_upgrade/task.py +++ b/turbo_hipster/task_plugins/gate_real_db_upgrade/task.py @@ -20,9 +20,10 @@ import os import re import threading -from lib import utils +from turbo_hipster.lib import utils -import task_plugins.gate_real_db_upgrade.handle_results as handle_results +import turbo_hipster.task_plugins.gate_real_db_upgrade.handle_results\ + as handle_results __worker_name__ = 'sql-migrate-test-runner-%s' % os.uname()[1] diff --git a/turbo_hipster/worker_server.py b/turbo_hipster/worker_server.py index e3d1b93..6a492fd 100755 --- a/turbo_hipster/worker_server.py +++ b/turbo_hipster/worker_server.py @@ -132,4 +132,6 @@ def main(): if __name__ == '__main__': + sys.path.insert(0, os.path.abspath( + os.path.join(os.path.dirname(__file__), '../'))) main()