os-ken/ryu/contrib/__init__.py
YAMAMOTO Takashi 575c623c6f contrib: fix a comment typo
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>
2013-02-02 11:21:23 +09:00

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