Only import graphviz when needed.
This commit is contained in:
		
							parent
							
								
									5343143902
								
							
						
					
					
						commit
						61dc2ef2ba
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -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…
	
	Add table
		
		Reference in a new issue