Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
Hdlmake
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
15
Issues
15
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Hdlmake
Commits
18002461
Commit
18002461
authored
Apr 30, 2016
by
Javier D. Garcia-Lasheras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only import the specific Python packages for the tree action when needed, e.g Netwokx, Numpy
parent
f4cd55ee
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
tree.py
hdlmake/action/tree.py
+7
-7
No files found.
hdlmake/action/tree.py
View file @
18002461
...
...
@@ -23,16 +23,16 @@ from .action import Action
from
hdlmake.util
import
path
import
logging
#import pygraphviz as pgv
import
networkx
as
nx
import
numpy
as
np
import
colorsys
# THIS IS THE BEST I'VE FOUND: http://bl.ocks.org/robschmuecker/7880033
class
Tree
(
Action
):
def
run
(
self
):
try
:
import
networkx
as
nx
import
numpy
as
np
import
colorsys
except
Exception
as
e
:
logging
.
error
(
e
)
quit
()
unfetched_modules
=
False
files_str
=
[]
hierarchy
=
nx
.
DiGraph
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment