271 lines
9.0 KiB
Python
Executable File
271 lines
9.0 KiB
Python
Executable File
#!/usr/bin/env -S uv run --script
|
|
# /// script
|
|
# dependencies = [
|
|
# "networkx",
|
|
# "jinja2",
|
|
# ]
|
|
# ///
|
|
|
|
import os
|
|
import ast
|
|
import sys
|
|
import json
|
|
import networkx as nx
|
|
from jinja2 import Template
|
|
|
|
def find_manifest_files(base_path):
|
|
manifest_files = []
|
|
for root, _, files in os.walk(base_path):
|
|
if '__manifest__.py' in files:
|
|
manifest_files.append(os |