Skip to content

Commit

Permalink
Merge pull request #49 from dinkelk/main
Browse files Browse the repository at this point in the history
Make set_python_path.sh only discover directories tracked by git
  • Loading branch information
dinkelk authored Jun 19, 2024
2 parents 6154826 + 13743a6 commit 23f01af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions env/set_python_path.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ ROOT_DIR=$1
# Function finds __init__.py files and forms a path.
create_python_path()
{
for init in `find $ROOT_DIR -not -path '*/\.*' -name "__init__.py"`
for init in `git -C $ROOT_DIR ls-files | grep "__init__.py$"`
do
dirname $init
dirname "$ROOT_DIR/$init"
done | tr '\n' ':'
}

Expand Down

0 comments on commit 23f01af

Please sign in to comment.