Expand env vars
This commit is contained in:
@@ -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 == "":
|
||||
|
||||
Reference in New Issue
Block a user