Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
dream
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
dream
Commits
cedf36c2
Commit
cedf36c2
authored
Feb 27, 2014
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
handle pydot unavailability at a later point
parent
318825d6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
dream/platform/__init__.py
dream/platform/__init__.py
+5
-4
No files found.
dream/platform/__init__.py
View file @
cedf36c2
...
...
@@ -22,10 +22,6 @@ import argparse
import
json
import
traceback
import
multiprocessing
try
:
import
pydot
except
ImportError
:
print
"Warning, pydot could not be found"
import
os.path
import
logging
...
...
@@ -59,6 +55,11 @@ def postJSONFile():
def
positionGraph
():
"""Uses graphviz to position nodes of the graph.
"""
try
:
import
pydot
except
ImportError
:
return
jsonify
({})
graph
=
pydot
.
Dot
()
for
node_id
,
node
in
request
.
json
[
'nodes'
].
iteritems
():
...
...
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