From ea1f2121389569d5e0addf8066bca9bf24174c16 Mon Sep 17 00:00:00 2001 From: pommicket Date: Tue, 16 Sep 2025 23:59:25 -0400 Subject: Start python library --- examples/read_conf.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 examples/read_conf.py (limited to 'examples/read_conf.py') diff --git a/examples/read_conf.py b/examples/read_conf.py new file mode 100644 index 0000000..e49fd4f --- /dev/null +++ b/examples/read_conf.py @@ -0,0 +1,10 @@ +# Put root of repository in sys.path +# (Ordinarily you won't want to do this — this is only +# needed to make this example work without pom_parser installed.) +from pathlib import Path +import sys +sys.path.append(str(Path(__file__).parent.parent)) + +import pom_parser +filename = 'examples/conf.pom' if len(sys.argv) < 2 else sys.argv[1] +print(pom_parser.load_path(filename)) -- cgit v1.2.3