mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-21 15:20:59 +00:00
c87379046f
Signed-off-by: Oz Tiram <oz.tiram@gmail.com>
22 lines
777 B
Diff
22 lines
777 B
Diff
diff --git a/pipenv/vendor/pipdeptree/__main__.py b/pipenv/vendor/pipdeptree/__main__.py
|
|
index cb48791..77ebab7 100644
|
|
--- a/pipenv/vendor/pipdeptree/__main__.py
|
|
+++ b/pipenv/vendor/pipdeptree/__main__.py
|
|
@@ -1,9 +1,16 @@
|
|
"""The main entry point used for CLI."""
|
|
from __future__ import annotations
|
|
|
|
+import os
|
|
import sys
|
|
from typing import Sequence
|
|
|
|
+pardir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
|
+# for finding pipdeptree itself
|
|
+sys.path.append(pardir)
|
|
+# for finding stuff in vendor and patched
|
|
+sys.path.append(os.path.dirname(os.path.dirname(pardir)))
|
|
+
|
|
from pipenv.vendor.pipdeptree._cli import get_options
|
|
from pipenv.vendor.pipdeptree._discovery import get_installed_distributions
|
|
from pipenv.vendor.pipdeptree._models import PackageDAG
|