diff --git a/scripts/show-path b/scripts/show-path new file mode 100755 index 0000000..1cb6cdc --- /dev/null +++ b/scripts/show-path @@ -0,0 +1,12 @@ +#! /bin/bash +set -e + +# Determine this platform's path separator +if [ $(uname -o | grep -c Msys) -gt 0 ]; then + pathsep=";" +else + pathsep=":" +fi + +# Print each entry in $PATH on its own line +echo $PATH | tr $pathsep '\n' diff --git a/scripts/show-pythonpath b/scripts/show-pythonpath index 13271c5..e1777fc 100755 --- a/scripts/show-pythonpath +++ b/scripts/show-pythonpath @@ -2,4 +2,4 @@ import sys for entry in sys.path: - print(" - " + entry) + print(entry)