OiO.lk Blog python Trying to include an egg file in the python using sys.path.extend. ending up in
python

Trying to include an egg file in the python using sys.path.extend. ending up in


I tried to add an egg file in sys.path using

egg_glob = os.path.dirname(__file__) + "/../../build/oh-tree/*.egg"
# print(egg_glob)
#eggs = reversed(sorted(glob.glob(egg_glob)))
sys.path.extend(glob.glob(egg_glob))

and then tried to import using
import oh.archive_log

but iam seeing this error.

import oh.archive_log
:1007: in _find_and_load
???
:986: in _find_and_load_unlocked
???
:664: in _load_unlocked
???
:627: in _load_backward_compatible
???

What am i doing wrong?



You need to sign in to view this answers

Exit mobile version