From a554f3677c037fc150698fa168eeeeaafe2e561c Mon Sep 17 00:00:00 2001 From: Greg Stein Date: Thu, 25 Mar 2021 00:10:05 -0500 Subject: [PATCH] switch directive to :readonly: for clarity --- gen.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/gen.py b/gen.py index 64874bb..bc03a35 100755 --- a/gen.py +++ b/gen.py @@ -123,15 +123,15 @@ def write_file(self, template, output): new_z = [ ] for line in lines: - if line.startswith(':block:'): + if line.startswith(':readonly:'): # FORMAT: - # :block:/some/random/path - # :block:/root/path/(alt1|alt2|alt3) + # :readonly:/some/random/path + # :readonly:/root/path/(alt1|alt2|alt3) if '(' in line: - root, rest = line[7:].split('(') + root, rest = line[10:].split('(') subdirs = [ root+p for p in rest[:-1].split('|') ] else: - subdirs = [ line[7:] ] + subdirs = [ line[10:] ] for s in subdirs: new_z.append(f'[{s}]\n* = r') elif line.startswith('#') or '={' not in line: