debian-koji/tests/test_www/loadwebindex.py
2018-03-01 16:01:47 -05:00

10 lines
429 B
Python

from __future__ import absolute_import
import os
import imp
# We have to do this craziness because 'import koji' is ambiguous. Is it the
# koji module, or the koji cli module. Jump through hoops accordingly.
# https://stackoverflow.com/questions/67631/how-to-import-a-module-given-the-full-path
INDEX_FILENAME = os.path.dirname(__file__) + "/../../www/kojiweb/index.py"
webidx = imp.load_source('index_fake', INDEX_FILENAME)