We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Make shorthands for imports, similar to solidity remappings
If I have a contract in a folder many directories away, it would be nice to be able to reference it easier.
If you have an import as such:
from my.path.to.my.other.package.here.some.other.dir.package_name import hello
it would be nice to be able to represent it as:
from @package_name import hello
When you compile, you could add a remapping to have these be identical, like:
vyper --remapping "@package_name=my.path.to.my.other.package.here.some.other.dir.package_name"
This is a new feature, so it should not have issues here.
None
Copyright and related rights waived via CC0
The text was updated successfully, but these errors were encountered:
I think search paths does what you want right?
Sorry, something went wrong.
No branches or pull requests
Simple Summary
Make shorthands for imports, similar to solidity remappings
Motivation
If I have a contract in a folder many directories away, it would be nice to be able to reference it easier.
Specification
If you have an import as such:
it would be nice to be able to represent it as:
When you compile, you could add a remapping to have these be identical, like:
Backwards Compatibility
This is a new feature, so it should not have issues here.
Dependencies
None
References
None
Copyright
Copyright and related rights waived via CC0
The text was updated successfully, but these errors were encountered: