Skip to content

Commit

Permalink
fix: allow leading underscore in project root path
Browse files Browse the repository at this point in the history
  • Loading branch information
iamdefinitelyahuman committed May 3, 2020
1 parent 8e897a6 commit b342dc1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion brownie/project/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -716,7 +716,9 @@ def _load_sources(project_path: Path, subfolder: str, allow_json: bool) -> Dict:
suffixes = suffixes + (".json",)

for path in project_path.glob(f"{subfolder}/**/*"):
if "/_" in path.as_posix() or path.suffix not in suffixes:
if path.suffix not in suffixes:
continue
if next((i for i in path.relative_to(project_path).parts if i.startswith("_")), False):
continue
with path.open() as fp:
source = fp.read()
Expand Down

0 comments on commit b342dc1

Please sign in to comment.