- import graphviz
- import pyan
- from utils import fileio
- source_dir = "/Users/liufan/program/PYTHON/SAP/PrivacyScan"
- file_list = fileio.walk_files_path(source_dir)
- res = pyan.create_callgraph(file_list, format="dot")
- graph = graphviz.Source(res)
- graph.view()
|