mirror of
https://github.com/antonblanchard/microwatt.git
synced 2026-04-03 03:59:22 +00:00
VUnit: use Path.glob instead of glob.glob
Signed-off-by: umarcor <unai.martinezcorral@ehu.eus>
This commit is contained in:
3
run.py
3
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
|
||||
|
||||
Reference in New Issue
Block a user