Only import graphviz when needed.
This commit is contained in:
parent
5343143902
commit
61dc2ef2ba
|
@ -1,10 +1,10 @@
|
|||
from graphviz import Digraph
|
||||
|
||||
from osdk.context import Context
|
||||
from osdk import vt100
|
||||
|
||||
|
||||
def view(context: Context, scope: str | None = None, showExe: bool = True):
|
||||
from graphviz import Digraph
|
||||
|
||||
g = Digraph(context.target.id, filename='graph.gv')
|
||||
|
||||
g.attr('graph', splines='ortho', rankdir='BT')
|
||||
|
|
Loading…
Reference in a new issue