diff --git a/components/partition_table/gen_esp32part.py b/components/partition_table/gen_esp32part.py index 2600ac214..897e637d0 100755 --- a/components/partition_table/gen_esp32part.py +++ b/components/partition_table/gen_esp32part.py @@ -51,9 +51,17 @@ class PartitionTable(list): @classmethod def from_csv(cls, csv_contents): res = PartitionTable() - lines = csv_contents.split("\n") + lines = csv_contents.splitlines() + + def expand_vars(f): + f = os.path.expandvars(f) + m = re.match(r'(?