Files
pipenv/pipenv/__init__.py
T
kennethreitz 21b2d630ad use absolute paths
maybe fix #594?

Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2017-09-19 11:49:37 -04:00

21 lines
499 B
Python

# |~~\' |~~
# |__/||~~\|--|/~\\ /
# | ||__/|__| |\/
# |
import os
import sys
# Inject vendored directory into system path.
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.abspath(os.path.sep.join([os.path.dirname(os.path.realpath(__file__)), 'patched']))
sys.path.insert(0, v_path)
from .cli import cli
if __name__ == '__main__':
cli()