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?


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.
  • Thank you Patrick!
    – Gallo
    Jul 14 at 22:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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