Expand env vars

This commit is contained in:
Byron Lathi
2025-07-14 12:45:49 -07:00
parent b8cd278cf1
commit 3a72154055
5 changed files with 8 additions and 2 deletions

View File

@@ -3,6 +3,8 @@ import argparse
from typing import List, Tuple
import pathlib
import os
def rtl_manifest_main():
parser = argparse.ArgumentParser(
@@ -38,7 +40,7 @@ def parse(source_file: str) -> Tuple[List[str], List[str]]:
base_dir = pathlib.Path(source_file).parent
with open(source_file, "r") as file:
for line in file:
path = line.strip()
path = os.path.expandvars(line.strip())
if path.startswith("#"):
continue
if path == "":