Inject vendor library root

This commit is contained in:
Frost Ming
2020-11-13 09:13:18 +08:00
parent 7b731533c1
commit cd6fc80451
2 changed files with 6 additions and 2 deletions
+2
View File
@@ -13,6 +13,8 @@ try:
except ImportError:
from ordereddict import OrderedDict
pardir = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
sys.path.append(pardir)
from pipenv.vendor.pip_shims import get_installed_distributions, FrozenRequirement
import pkg_resources
@@ -1,8 +1,8 @@
diff --git a/pipenv/vendor/pipdeptree.py b/pipenv/vendor/pipdeptree.py
index 6f6f2a10..78c19e31 100644
index 6f6f2a10..cd67538c 100644
--- a/pipenv/vendor/pipdeptree.py
+++ b/pipenv/vendor/pipdeptree.py
@@ -13,13 +13,9 @@ try:
@@ -13,13 +13,11 @@ try:
except ImportError:
from ordereddict import OrderedDict
@@ -11,6 +11,8 @@ index 6f6f2a10..78c19e31 100644
- from pipenv.patched.notpip._internal.operations.freeze import FrozenRequirement
-except ImportError:
- from pipenv.patched.notpip import get_installed_distributions, FrozenRequirement
+pardir = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
+sys.path.append(pardir)
+from pipenv.vendor.pip_shims import get_installed_distributions, FrozenRequirement
-from pipenv.patched.notpip._vendor import pkg_resources