Skip to content

Commit

Permalink
fixed problem with finding example netlists
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobdbrown4 committed Aug 30, 2023
1 parent a1a95df commit 43e8bb5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion spydrnet/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,19 +154,21 @@ def determine_example_netlists_path(download_option):
eblif_example_netlist_names = []

def get_example_netlist_names(path):
example_netlist_names.clear()
edif_path = Path(path).joinpath('EDIF_netlists')
for filename in Path.glob(edif_path, "*"):
basename = Path(filename).name
example_netlist_names.append(basename[:basename.index('.')])
example_netlist_names.sort()


verilog_example_netlist_names.clear()
verilog_path = Path(path).joinpath('verilog_netlists')
for filename in Path.glob(verilog_path, "*"):
basename = Path(filename).name
verilog_example_netlist_names.append(basename[:basename.index('.')])
verilog_example_netlist_names.sort()

eblif_example_netlist_names.clear()
eblif_path = Path(path).joinpath('eblif_netlists')
for filename in Path.glob(eblif_path, "*"):
basename = Path(filename).name
Expand Down

0 comments on commit 43e8bb5

Please sign in to comment.