VUnit: use Path.glob instead of glob.glob

Signed-off-by: umarcor <unai.martinezcorral@ehu.eus>
pull/301/head
umarcor 3 years ago
parent 7571416f81
commit 2031c6d2d2

@ -1,6 +1,5 @@
from pathlib import Path from pathlib import Path
from vunit import VUnit from vunit import VUnit
from glob import glob


prj = VUnit.from_argv() prj = VUnit.from_argv()
prj.add_osvvm() prj.add_osvvm()
@ -11,7 +10,7 @@ lib.add_source_files(root / "litedram" / "extras" / "*.vhdl")
lib.add_source_files(root / "litedram" / "generated" / "sim" / "*.vhdl") lib.add_source_files(root / "litedram" / "generated" / "sim" / "*.vhdl")


# Use multiply.vhd and not xilinx-mult.vhd. Use VHDL-based random. # 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 = [ vhdl_files = [
src_file src_file
for src_file in vhdl_files for src_file in vhdl_files

Loading…
Cancel
Save