|
9 | 9 | from . import py2depgraph, cli, dot, target |
10 | 10 | from .depgraph2dot import dep2dot, cycles2dot |
11 | 11 | import logging |
| 12 | +from . import colors |
12 | 13 | log = logging.getLogger(__name__) |
13 | 14 |
|
14 | 15 |
|
15 | 16 | def _pydeps(trgt, **kw): |
16 | 17 | # Pass args as a **kw dict since we need to pass it down to functions |
17 | 18 | # called, but extract locally relevant parameters first to make the |
18 | 19 | # code prettier (and more fault tolerant). |
| 20 | + colors.START_COLOR = kw.get('start_color') |
19 | 21 | show_cycles = kw.get('show_cycles') |
20 | 22 | nodot = kw.get('nodot') |
21 | 23 | no_output = kw.get('no_output') |
@@ -74,7 +76,7 @@ def externals(trgt, **kwargs): |
74 | 76 | externals=True, format='svg', max_bacon=2**65, no_config=True, nodot=False, |
75 | 77 | noise_level=2**65, noshow=True, output=None, pylib=True, pylib_all=True, |
76 | 78 | show=False, show_cycles=False, show_deps=False, show_dot=False, |
77 | | - show_raw_deps=False, verbose=0, include_missing=True, |
| 79 | + show_raw_deps=False, verbose=0, include_missing=True, start_color=0 |
78 | 80 | ) |
79 | 81 | kw.update(kwargs) |
80 | 82 | depgraph = py2depgraph.py2dep(trgt, **kw) |
|
0 commit comments