Skip to content

Commit ffad219

Browse files
committed
fix(robot): correct check for __init__.py file in _is_valid_file function
1 parent 5d21baf commit ffad219

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/robot/src/robotcode/robot/utils/robot_path.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,4 @@ def _find_relative_path(
6666

6767
def _is_valid_file(path: Union[Path, "PathLike[str]", str]) -> bool:
6868
path = Path(path)
69-
return path.is_file() or (path.is_dir() and Path(path, "__init__.py").is_fifo())
69+
return path.is_file() or (path.is_dir() and Path(path, "__init__.py").is_file())

0 commit comments

Comments
 (0)