Skip to content

Commit

Permalink
Merge pull request #144 from dogodigi/master
Browse files Browse the repository at this point in the history
Twee kleine fixes i.v.m. python 3 als standaard op mijn systeem
  • Loading branch information
justb4 committed Apr 17, 2015
2 parents 866df89 + faf3384 commit dccf7c2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion bag/bin/bag-extract.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,10 @@ BASEDIR=`(cd "$BASEDIR"; pwd)`
PY_SCRIPT=$BASEDIR/src/bagextract.py

# uitvoeren Python script met alle meegegeven args
python $PY_SCRIPT $@
ret=`python -c 'import sys; print("%i" % (sys.hexversion<0x03000000))'`
if [ $ret -eq 0 ]; then
#Python 3 is de standaard, roep python2 aan.
python2 $PY_SCRIPT $@
else
python $PY_SCRIPT $@
fi
2 changes: 1 addition & 1 deletion bag/src/bagextract.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def confirm(prompt=None, resp=False):
if not ans:
return resp
if ans not in ['j', 'J', 'n', 'N']:
print 'Geef j of n.'
print ('Geef j of n.')
continue
if ans == 'j' or ans == 'J':
return True
Expand Down

0 comments on commit dccf7c2

Please sign in to comment.