Add comment feature

This commit is contained in:
Byron Lathi
2024-08-16 23:12:37 -07:00
parent 27779bec8f
commit 875faf4d56
2 changed files with 4 additions and 1 deletions

View File

@@ -28,6 +28,8 @@ def read_sources(source_file: str) -> List[str]:
with open(source_file, "r") as file:
for line in file:
path = line.strip()
if path.startswith("#"):
continue
if (path.endswith("sources.list")):
new_path = pathlib.Path(base_dir) / path
for recursive_path in read_sources(new_path):

View File

@@ -1,2 +1,3 @@
src/sub/submodule/sources.list
src/example.sv
# This is a comment!