use sys.path.insert(1, v_path) instead of sys.path.append(v_path)

packages under vendor/ should be used than that installed by pip.
This commit is contained in:
nonylene
2017-05-19 14:21:02 +09:00
parent 41178eeec0
commit 8d98a751a4
+1 -1
View File
@@ -8,7 +8,7 @@ import sys
# Inject vendored directory into system path.
v_path = os.path.sep.join([os.path.dirname(os.path.realpath(__file__)), 'vendor'])
sys.path.append(v_path)
sys.path.insert(1, v_path)
from .cli import cli