I have a brownie project containing the source code for a Vault contract as well as it's deployment script.

Badger-Vaults Containing the Vault.vy contract for vaults, as well as scripts/deploy_badger_vault.py

I'm working on a Brownie Mix: Badger Vaults Mix V2

My goal is to import the script scripts/deploy_badger_vault.py and use it in the Brownie Mix.

Is there a way to import it?

1 Answer 1


Brownie doesn't have a functionality to import across brownie projects. So you have 2 options.

  1. Copy paste the code
  2. Pip install the repo and then use it in your code. See this question for more information.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.