From 6ac6c1933ecf06ee908ac4e0f0ad27d532ba7d88 Mon Sep 17 00:00:00 2001 From: Patrick Lehmann Date: Tue, 27 Dec 2022 22:42:47 +0100 Subject: Fixed glob pattern in DOM CLI test program. --- pyGHDL/cli/dom.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pyGHDL/cli') 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( -- cgit v1.2.3