Skip to content

Commit

Permalink
util.py refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
Obijuan committed Mar 15, 2024
1 parent cb63dfa commit 1e05e69
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions apio/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -414,8 +414,8 @@ def get_bin_dir_table(base_dir):
"""

bin_dir = {
OSS_CAD_SUITE: str(Path(base_dir.get(OSS_CAD_SUITE)) / BIN),
GTKWAVE: str(Path(base_dir.get(GTKWAVE)) / BIN),
OSS_CAD_SUITE: str(Path(base_dir[OSS_CAD_SUITE]) / BIN),
GTKWAVE: str(Path(base_dir[GTKWAVE]) / BIN),
}

return bin_dir
Expand Down Expand Up @@ -500,7 +500,7 @@ def get_package_spec_version(name, resources):
return spec_version


def exec_command(*args, **kwargs) -> dict: # pragma: no cover
def exec_command(*args, **kwargs) -> dict:
"""Execute the given command:
INPUTS:
Expand Down Expand Up @@ -735,8 +735,6 @@ def get_serial_ports() -> list:
return result


# W0703: Catching too general exception Exception (broad-except)
# pylint: disable=W0703
def get_tinyprog_meta() -> list:
"""Special function for the TinyFPGA board
Get information directly from the board, just by
Expand Down

0 comments on commit 1e05e69

Please sign in to comment.