Add script to dump the PATH
This commit is contained in:
parent
a55a60e1e2
commit
f8b9d16b5c
12
scripts/show-path
Executable file
12
scripts/show-path
Executable file
@ -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'
|
@ -2,4 +2,4 @@
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
for entry in sys.path:
|
for entry in sys.path:
|
||||||
print(" - " + entry)
|
print(entry)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user