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

Support for Path objects #97

Merged
merged 4 commits into from
Jul 27, 2020
Merged

Support for Path objects #97

merged 4 commits into from
Jul 27, 2020

Conversation

iamdefinitelyahuman
Copy link
Contributor

What I did

Add support for Path objects as compiler inputs.

Closes #55
Closes #65

How I did it

Added the _to_string private function within the wrapper. Path objects are converted via .as_posix() - through a lot of experimentation, it seems this is the only way to get consistent path outputs on Windows across all solc versions. Later versions of solc will always convert windows paths to the posix-style, whereas earlier versions simply return it in the same format it's received in.

How to verify it

Run tests. This could (and will) be tested better before merging to master.

@iamdefinitelyahuman iamdefinitelyahuman merged commit 9016a2b into v1.0.0-dev Jul 27, 2020
@iamdefinitelyahuman iamdefinitelyahuman deleted the feat-path branch July 27, 2020 18:03
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