File tree Expand file tree Collapse file tree 2 files changed +11
-17
lines changed
tasks/vendoring/patches/vendor Expand file tree Collapse file tree 2 files changed +11
-17
lines changed Original file line number Diff line number Diff line change 5
5
import sys
6
6
from typing import Sequence
7
7
8
+ pardir = os .path .dirname (os .path .dirname (os .path .abspath (__file__ )))
9
+ # for finding pipdeptree itself
10
+ sys .path .append (pardir )
11
+ # for finding stuff in vendor and patched
12
+ sys .path .append (os .path .dirname (os .path .dirname (pardir )))
13
+
8
14
from pipenv .vendor .pipdeptree ._cli import get_options
9
15
from pipenv .vendor .pipdeptree ._discovery import get_installed_distributions
10
16
from pipenv .vendor .pipdeptree ._models import PackageDAG
13
19
from pipenv .vendor .pipdeptree ._validate import validate
14
20
15
21
16
- pardir = os .path .dirname (os .path .dirname (os .path .abspath (__file__ )))
17
- # for finding pipdeptree itself
18
- sys .path .append (pardir )
19
- # for finding stuff in vendor and patched
20
- sys .path .append (os .path .dirname (os .path .dirname (pardir )))
21
-
22
-
23
22
def main (args : Sequence [str ] | None = None ) -> None | int :
24
23
"""CLI - The main function called as entry point."""
25
24
options = get_options (args )
Original file line number Diff line number Diff line change 1
1
diff --git a/pipenv/vendor/pipdeptree/__main__.py b/pipenv/vendor/pipdeptree/__main__.py
2
- index cb48791..d1c24f5 100644
2
+ index cb48791..77ebab7 100644
3
3
--- a/pipenv/vendor/pipdeptree/__main__.py
4
4
+++ b/pipenv/vendor/pipdeptree/__main__.py
5
- @@ -1,6 +1,7 @@
5
+ @@ -1,9 +1,16 @@
6
6
"""The main entry point used for CLI."""
7
7
from __future__ import annotations
8
8
9
9
+ import os
10
10
import sys
11
11
from typing import Sequence
12
12
13
- @@ -12,6 +13,13 @@ from pipdeptree._render import render
14
- from pipenv.vendor.pipdeptree._validate import validate
15
-
16
-
17
13
+ pardir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
18
14
+ # for finding pipdeptree itself
19
15
+ sys.path.append(pardir)
20
16
+ # for finding stuff in vendor and patched
21
17
+ sys.path.append(os.path.dirname(os.path.dirname(pardir)))
22
18
+
23
- +
24
- def main(args: Sequence[str] | None = None) -> None | int:
25
- """CLI - The main function called as entry point."""
26
- options = get_options(args)
19
+ from pipenv.vendor.pipdeptree._cli import get_options
20
+ from pipenv.vendor.pipdeptree._discovery import get_installed_distributions
21
+ from pipenv.vendor.pipdeptree._models import PackageDAG
You can’t perform that action at this time.
0 commit comments