insert path before import kojihub

fix theproblem introduced by PR #763

this doesn't impact hub functionality, and is only related to some special cases like running runroot_hub script alone
This commit is contained in:
Yuming Zhu 2020-02-26 00:07:12 +08:00 committed by Yu Ming Zhu
parent 4c315dddc0
commit a5ff1f0d68
2 changed files with 4 additions and 3 deletions

View file

@ -9,12 +9,12 @@ import random
import sys
import koji
# XXX - have to import kojihub for make_task
sys.path.insert(0, '/usr/share/koji-hub/')
import kojihub
from koji.context import context
from koji.plugin import export
#XXX - have to import kojihub for make_task
sys.path.insert(0, '/usr/share/koji-hub/')
__all__ = ('runroot',)

View file

@ -3,11 +3,12 @@ from __future__ import absolute_import
import sys
import koji
sys.path.insert(0, '/usr/share/koji-hub/')
import kojihub
from koji.context import context
from koji.plugin import export
sys.path.insert(0, '/usr/share/koji-hub/')
__all__ = ('saveFailedTree',)