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

Allow brownie run outside of a project #722

Merged
merged 3 commits into from
Aug 18, 2020

Conversation

iamdefinitelyahuman
Copy link
Member

What I did

Allow use of brownie run outside of a project.

How I did it

  • Remove the requirement for a loaded project in brownie._cli.run
  • Modify the import logic when loading scripts. The root folder is temporarily added to sys.path to ensure a script may be imported from anywhere.

How to verify it

Try it out.

@iamdefinitelyahuman iamdefinitelyahuman merged commit d552013 into master Aug 18, 2020
@iamdefinitelyahuman iamdefinitelyahuman deleted the feat-run-outside-project branch August 18, 2020 19:46
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.

None yet

2 participants