Bug 1059814 - Deploy script: Fix commander_settings import

Apparently the current directory is only sometimes on the path & I
mis-read or understood the docs, sigh. Let's just keep the sys.path
manipulation and use #noqa to keep flake8 quiet.
This commit is contained in:
Ed Morley 2015-03-02 17:35:56 +00:00
Родитель 87f7a32e00
Коммит c0e59f9bea
1 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -11,9 +11,12 @@ Requires commander_ which is installed on the systems that need it.
"""
import os
import sys
from commander.deploy import task, hostgroups
import commander_settings as settings
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
import commander_settings as settings # noqa
th_service_src = os.path.join(settings.SRC_DIR, 'treeherder-service')
th_ui_src = os.path.join(settings.SRC_DIR, 'treeherder-ui')