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

Absolute import fix #1829

Merged
merged 2 commits into from
Jan 9, 2020

Conversation

iamdefinitelyahuman
Copy link
Contributor

What I did

Fix #1828

How I did it

In vyper/compile.py, iterate directly over the returned compile data rather than the input args. This is required because when the original path is relative to the current working directory, it is changed to a relative path prior to being returned.

How to verify it

Run the tests. I added a new test that checks the vyper cli behavior for an absolute path, a relative path, and an absolute path that is in a subfolder of the current working directory.

Cute Animal Picture

image

@fubuloubu fubuloubu merged commit e909d94 into vyperlang:master Jan 9, 2020
@iamdefinitelyahuman iamdefinitelyahuman deleted the absolute-import-fix branch January 9, 2020 22:54
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.

KeyError when using an absolute file name
2 participants