aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Lehmann <Patrick.Lehmann@plc2.de>2022-12-27 22:42:47 +0100
committerPatrick Lehmann <Patrick.Lehmann@plc2.de>2022-12-27 22:42:47 +0100
commit6ac6c1933ecf06ee908ac4e0f0ad27d532ba7d88 (patch)
tree3208ac7b6371899f766c082fcb2121886a5b6265
parenta040eb775a5bcf7392d67595483d9dc6503e7075 (diff)
downloadghdl-6ac6c1933ecf06ee908ac4e0f0ad27d532ba7d88.tar.gz
ghdl-6ac6c1933ecf06ee908ac4e0f0ad27d532ba7d88.tar.bz2
ghdl-6ac6c1933ecf06ee908ac4e0f0ad27d532ba7d88.zip
Fixed glob pattern in DOM CLI test program.
-rwxr-xr-xpyGHDL/cli/dom.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pyGHDL/cli/dom.py b/pyGHDL/cli/dom.py
index 7ca4a17da..442ad6688 100755
--- a/pyGHDL/cli/dom.py
+++ b/pyGHDL/cli/dom.py
@@ -280,11 +280,11 @@ class Application(LineTerminal, ArgParseMixin):
)
)
elif args.Directory is not None:
- d: Path = args.Directory
+ d: Path = args.Directory.resolve()
if not d.exists():
self.WriteError(f"Directory '{d!s}' does not exist.")
- for file in d.glob("**/*.vhd?"):
+ for file in d.glob("**/*.vhd*"):
self.WriteNormal(f"Parsing file '{file!s}'")
document = self.addFile(file, "pretty")
self.WriteInfo(