575c623c6f
Signed-off-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp> Reviewed-by: Simon Horman <horms@verge.net.au> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
12 lines
312 B
Python
12 lines
312 B
Python
# Adjust module loading path for third party libraries
|
|
import os
|
|
import sys
|
|
|
|
for path in __path__:
|
|
if path in sys.path:
|
|
sys.path.remove(path)
|
|
path = os.path.abspath(path)
|
|
if path in sys.path:
|
|
sys.path.remove(path)
|
|
sys.path.insert(0, path) # prioritize our own copy than system's
|