Skip to content

Commit

Permalink
Correction
Browse files Browse the repository at this point in the history
  • Loading branch information
matteius committed Jan 22, 2024
1 parent 627ce28 commit 0c7b893
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/pythonfinder/models/python.py
Original file line number Diff line number Diff line change
Expand Up @@ -525,11 +525,8 @@ def from_path(
path_name = getattr(path, "name", path_obj.name)
path_str = path.path.absolute().as_posix()
elif isinstance(path, PythonFinder): # If path is a PythonFinder object
path_obj = path.path # Assuming PythonFinder has a path attribute
path_name = getattr(path, "name", path_obj.name)
path_str = (
path.path.absolute().as_posix()
) # Assuming PythonFinder has a path attribute
path_name = None
path_str = path.path
else:
raise ValueError(
f"Invalid path type: {type(path)}. Expected str, PathEntry, or PythonFinder."
Expand Down

0 comments on commit 0c7b893

Please sign in to comment.