Only import graphviz when needed.

This commit is contained in:
Nicolas Van Bossuyt 2023-02-08 10:50:43 +01:00
parent 5343143902
commit 61dc2ef2ba

View file

@ -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')