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

Search parent paths for import file during source verification #1776

Merged
merged 1 commit into from
May 22, 2024

Conversation

consol3cowboy
Copy link
Contributor

What I did

During source file verification, recursively check each parent folder to find the absolute path of a file import.

Related issue: #1775

How I did it

Recursively check each .parent of source_file_dir until the path exists. If the check fails, raise a FileNotFoundError.

I'm unsure how to go about writing tests for this, but confirm the behavior works for my case.

@iamdefinitelyahuman iamdefinitelyahuman merged commit e24b9ad into eth-brownie:master May 22, 2024
7 of 12 checks passed
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.

2 participants