mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
use absolute paths
maybe fix #594? Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
This commit is contained in:
+2
-2
@@ -7,11 +7,11 @@ import os
|
||||
import sys
|
||||
|
||||
# Inject vendored directory into system path.
|
||||
v_path = os.path.sep.join([os.path.dirname(os.path.realpath(__file__)), 'vendor'])
|
||||
v_path = os.path.abspath(os.path.sep.join([os.path.dirname(os.path.realpath(__file__)), 'vendor']))
|
||||
sys.path.insert(0, v_path)
|
||||
|
||||
# Inject patched directory into system path.
|
||||
v_path = os.path.sep.join([os.path.dirname(os.path.realpath(__file__)), 'patched'])
|
||||
v_path = os.path.abspath(os.path.sep.join([os.path.dirname(os.path.realpath(__file__)), 'patched']))
|
||||
sys.path.insert(0, v_path)
|
||||
|
||||
from .cli import cli
|
||||
|
||||
Reference in New Issue
Block a user