mirror of
https://github.com/rasbt/python_reference.git
synced 2024-12-18 00:00:19 +00:00
syntax fix
This commit is contained in:
parent
f71bcde1b3
commit
759ef2dcf6
|
@ -9,9 +9,8 @@
|
|||
|
||||
# prepends !#/usr/bin/python to all .py files
|
||||
|
||||
python_ver=$(which python)
|
||||
find ./ -maxdepth 1 -name "*.py" -exec sed -i.bak '1i\
|
||||
#!/usr/bin/env/python"$python_ver"
|
||||
#!'"$(which python)"'
|
||||
' {} \;
|
||||
|
||||
# removes temporary files
|
||||
|
|
Loading…
Reference in New Issue
Block a user