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 bb09b66 commit cb63dfa
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions apio/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ def get_bin_dir_table(base_dir):
return bin_dir


def check_package(name: str, version: str, spec_version: str, path):
def check_package(name: str, version: str, spec_version: str, path: Path):
"""Check if the given package is installed
* name: Package name
* path: path where the binary files of the package are stored
Expand All @@ -433,7 +433,6 @@ def check_package(name: str, version: str, spec_version: str, path):
return True

# Check package path
# if not isdir(path):
if not path.is_dir():
show_package_path_error(name)
show_package_install_instructions(name)
Expand Down

0 comments on commit cb63dfa

Please sign in to comment.