Skip to content

fix: allow debugging inside __init__.robot files #79

New issue

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

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

Already on GitHub? # to your account

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.

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

Successfully merging this pull request may close these issues.

1 participant