Skip to content

Absolute import fix#1829

Merged
fubuloubu merged 2 commits into
vyperlang:masterfrom
iamdefinitelyahuman:absolute-import-fix
Jan 9, 2020
Merged

Absolute import fix#1829
fubuloubu merged 2 commits into
vyperlang:masterfrom
iamdefinitelyahuman:absolute-import-fix

Conversation

@iamdefinitelyahuman

Copy link
Copy Markdown
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