Replaced all instances of 'python' with 'python2'
On systems where 'python' refers to python3, redo failed to launch. All invocations of python have been made explicitly python2 invocations. All tests pass on an Arch Linux system as of this commit.
This commit is contained in:
parent
6d7020b987
commit
190b4c34ff
15 changed files with 16 additions and 16 deletions
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env python
|
||||
#!/usr/bin/env python2
|
||||
import sys, os, markdown, re
|
||||
from BeautifulSoup import BeautifulSoup
|
||||
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ for d in *.py version/*.py; do
|
|||
fix=$(echo $d | sed 's,-,_,g')
|
||||
$INSTALL -m 0644 $d $LIBDIR/$fix
|
||||
done
|
||||
python -mcompileall $LIBDIR
|
||||
python2 -mcompileall $LIBDIR
|
||||
|
||||
# It's important for the file to actually be named 'sh'. Some shells (like
|
||||
# bash and zsh) only go into POSIX-compatible mode if they have that name.
|
||||
|
|
@ -37,7 +37,7 @@ for dd in redo*.py; do
|
|||
d=$(basename $dd .py)
|
||||
fix=$(echo $d | sed -e 's,-,_,g')
|
||||
cat >install.wrapper <<-EOF
|
||||
#!/usr/bin/python
|
||||
#!/usr/bin/python2
|
||||
import sys, os;
|
||||
exedir = os.path.dirname(os.path.realpath(os.path.abspath(sys.argv[0])))
|
||||
sys.path.insert(0, os.path.join(exedir, '../lib/redo'))
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env python
|
||||
#!/usr/bin/env python2
|
||||
import sys, os
|
||||
import vars, state
|
||||
from log import err
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env python
|
||||
#!/usr/bin/env python2
|
||||
import sys, os
|
||||
|
||||
import vars_init
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env python
|
||||
#!/usr/bin/env python2
|
||||
import sys, os
|
||||
import vars, state
|
||||
from log import err
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env python
|
||||
#!/usr/bin/env python2
|
||||
import sys, os
|
||||
|
||||
import vars_init
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env python
|
||||
#!/usr/bin/env python2
|
||||
import sys, os
|
||||
|
||||
import vars_init
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env python
|
||||
#!/usr/bin/env python2
|
||||
import sys, os
|
||||
import vars, state
|
||||
from log import err, debug2
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env python
|
||||
#!/usr/bin/env python2
|
||||
import sys, os
|
||||
|
||||
import vars_init
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env python
|
||||
#!/usr/bin/env python2
|
||||
import sys, os
|
||||
import state
|
||||
from log import err
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env python
|
||||
#!/usr/bin/env python2
|
||||
import sys, os
|
||||
|
||||
import vars_init
|
||||
|
|
|
|||
2
redo.py
2
redo.py
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env python
|
||||
#!/usr/bin/env python2
|
||||
import sys, os
|
||||
import options
|
||||
from helpers import atoi
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env python
|
||||
#!/usr/bin/env python2
|
||||
import time
|
||||
|
||||
t1 = int(time.time())
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
umask 0022
|
||||
redo mode1
|
||||
MODE=$(python -c 'import os; print oct(os.stat("mode1").st_mode & 07777)')
|
||||
MODE=$(python2 -c 'import os; print oct(os.stat("mode1").st_mode & 07777)')
|
||||
[ "$MODE" = "0644" ] || exit 78
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env python
|
||||
#!/usr/bin/env python2
|
||||
import sys, os, sqlite3
|
||||
|
||||
if "DO_BUILT" in os.environ:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue