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:
parent
4c315dddc0
commit
a5ff1f0d68
2 changed files with 4 additions and 3 deletions
|
|
@ -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',)
|
||||
|
||||
|
|
|
|||
|
|
@ -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',)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue