Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: allow debugging inside __init__.robot files #79

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Blashaq
Copy link

@Blashaq Blashaq commented Sep 9, 2024

RobotFramework allows to specify folder-wide initialization file __init__robot.
Sadly listener API does not pass this file to the start_keyword listener method- instead giving only directory path.
This causes RF-debuglibrary to crash inside __init__.robot files.

This PR fixes this by checking if the path is actually a file- if not, verify if there is indeed an __init__ file in this directory. If it is the case, assume that we are inside this file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant