From 07ed4dfb75178b005ea9612b3b270346e3708caf Mon Sep 17 00:00:00 2001 From: jdoe0 Date: Sat, 18 Jan 2014 01:40:43 +0700 Subject: [PATCH] ankisyncd.sh: Disable python version check --- ankisyncd.sh | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/ankisyncd.sh b/ankisyncd.sh index d92de0c..3b919dc 100755 --- a/ankisyncd.sh +++ b/ankisyncd.sh @@ -1,21 +1,5 @@ #! /usr/bin/env bash export PYTHONPATH="/usr/share/ankisyncd" -export PYTHON="python2" -which python2 > /dev/null - -if [ $? -ne 0 ]; then - which python > /dev/null - - if [ $? -ne 0 -a \ - $($PYTHON -V 2>&1 | cut -d ' ' -f 2 | cut -d '.' -f 1) -ne 2 ]; then - PYTHON="python" - else - echo "$0: Cannot find Python 2" 1>&2 - - exit 1 - fi -fi - -$PYTHON /usr/share/ankisyncd/ankisyncd/sync_app.py +python /usr/share/ankisyncd/ankisyncd/sync_app.py