Skip to content

Commit bc25d3c

Browse files
committed
vendor: add patched pipdeptree/__main__.py
1 parent d1b4fa6 commit bc25d3c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

pipenv/vendor/pipdeptree/__main__.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,16 @@
22

33
from __future__ import annotations
44

5+
import os
56
import sys
67
from typing import Sequence
78

9+
pardir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
10+
# for finding pipdeptree itself
11+
sys.path.append(pardir)
12+
# for finding stuff in vendor and patched
13+
sys.path.append(os.path.dirname(os.path.dirname(pardir)))
14+
815
from pipenv.vendor.pipdeptree._cli import get_options
916
from pipenv.vendor.pipdeptree._detect_env import detect_active_interpreter
1017
from pipenv.vendor.pipdeptree._discovery import get_installed_distributions

0 commit comments

Comments
 (0)