mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
+6
-4
@@ -6,13 +6,15 @@
|
||||
import os
|
||||
import sys
|
||||
|
||||
|
||||
PIPENV_ROOT = os.path.dirname(os.path.realpath(__file__))
|
||||
PIPENV_VENDOR = os.sep.join([PIPENV_ROOT, 'vendor'])
|
||||
PIPENV_PATCHED = os.sep.join([PIPENV_ROOT, 'patched'])
|
||||
# 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)
|
||||
sys.path.insert(0, PIPENV_VENDOR)
|
||||
|
||||
# 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)
|
||||
sys.path.insert(0, PIPENV_PATCHED)
|
||||
|
||||
from .cli import cli
|
||||
from . import resolver
|
||||
|
||||
@@ -1,14 +1,11 @@
|
||||
import os
|
||||
import sys
|
||||
|
||||
from ..pipenv import PIPENV_VENDOR, PIPENV_PATCHED
|
||||
import pew
|
||||
|
||||
pipenv_root = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
||||
pipenv_vendor = os.sep.join([pipenv_root, 'vendor'])
|
||||
pipenv_patched = os.sep.join([pipenv_root, 'patched'])
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
sys.path.insert(0, pipenv_vendor)
|
||||
sys.path.insert(0, pipenv_patched)
|
||||
sys.path.insert(0, PIPENV_VENDOR)
|
||||
sys.path.insert(0, PIPENV_PATCHED)
|
||||
pew.pew.pew()
|
||||
|
||||
Reference in New Issue
Block a user