Skip to content

Commit

Permalink
Merge pull request #27 from AdamHolwerda/master
Browse files Browse the repository at this point in the history
Parentheses for python `print`
  • Loading branch information
sp1thas authored Sep 1, 2022
2 parents 5bf8af0 + f043694 commit 84f6333
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/dropboxignore.sh
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ get_relative_path() {
if command -v realpath &>/dev/null; then
realpath --relative-to="${2-$PWD}" "$1"
else
python -c 'import os.path, sys;print os.path.relpath(sys.argv[1],sys.argv[2])' "$1" "${2-$PWD}"
python -c 'import os.path, sys;print(os.path.relpath(sys.argv[1],sys.argv[2]))' "$1" "${2-$PWD}"
fi
}

Expand All @@ -211,7 +211,7 @@ get_absolute_path() {
if command -v realpath &>/dev/null; then
realpath "$1"
else
python -c 'import os.path, sys;print os.path.abspath(sys.argv[1])' "$1"
python -c 'import os.path, sys;print(os.path.abspath(sys.argv[1]))' "$1"
fi
}

Expand Down

0 comments on commit 84f6333

Please sign in to comment.