Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions package_name/utils.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
"""
Various utility functions, for use outside of the `package_name` module.

Do not add any functions here that gets imported into the `synthetic_consumers` module.
If you need to add logic that gets imported into the `synthetic_consumers` module,
Do not add any functions here that gets imported into the `package_name` module.
If you need to add logic that gets imported into the `package_name` module,
add it to another file in this directory where it logically belongs. If none such file
exists, create a new file in this directory.

Expand Down
8 changes: 7 additions & 1 deletion setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,13 @@ name=$(basename "$(pwd)" | tr '-' '_')

find . -type f -not -path '*/\.*' -not -name 'setup.sh' -exec sh -c '
if file -b --mime-type "$1" | grep -q "^text/"; then
sed -i "" "s/$2/$3/g" "$1"
if [ "$(uname)" = "Darwin" ]; then
# macOS (BSD sed)
sed -i "" "s/$2/$3/g" "$1"
else
# Linux (GNU sed)
sed -i "s/$2/$3/g" "$1"
fi
fi
' sh {} "$current_name" "$name" \;

Expand Down
Loading