зеркало из https://github.com/mozilla/treeherder.git
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:
Родитель
87f7a32e00
Коммит
c0e59f9bea
|
@ -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')
|
||||
|
|
Загрузка…
Ссылка в новой задаче