We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f71bcde commit 759ef2dCopy full SHA for 759ef2d
1 file changed
useful_scripts/prepend_python_shebang.sh
@@ -9,9 +9,8 @@
9
10
# prepends !#/usr/bin/python to all .py files
11
12
-python_ver=$(which python)
13
find ./ -maxdepth 1 -name "*.py" -exec sed -i.bak '1i\
14
-#!/usr/bin/env/python"$python_ver"
+#!'"$(which python)"'
15
' {} \;
16
17
# removes temporary files
0 commit comments