From 2031c6d2d22a43cff869c5716ee7e06f4fb26334 Mon Sep 17 00:00:00 2001 From: umarcor Date: Wed, 21 Jul 2021 19:52:24 +0200 Subject: [PATCH] VUnit: use Path.glob instead of glob.glob Signed-off-by: umarcor --- run.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/run.py b/run.py index 2ffbc9e..a01c11d 100644 --- a/run.py +++ b/run.py @@ -1,6 +1,5 @@ from pathlib import Path from vunit import VUnit -from glob import glob prj = VUnit.from_argv() prj.add_osvvm() @@ -11,7 +10,7 @@ lib.add_source_files(root / "litedram" / "extras" / "*.vhdl") lib.add_source_files(root / "litedram" / "generated" / "sim" / "*.vhdl") # Use multiply.vhd and not xilinx-mult.vhd. Use VHDL-based random. -vhdl_files = glob(str(root / "*.vhdl")) +vhdl_files = root.glob("*.vhdl") vhdl_files = [ src_file for src_file in vhdl_files