summaryrefslogtreecommitdiff
path: root/tasks.py
diff options
context:
space:
mode:
Diffstat (limited to 'tasks.py')
-rw-r--r--tasks.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tasks.py b/tasks.py
index 450fa5e..81ef678 100644
--- a/tasks.py
+++ b/tasks.py
@@ -16,7 +16,7 @@ SRC_IMAGE_NAME = 'fossee/yaksh_codeserver'
CHECK_FILE = 'server_running.txt'
CHECK_FILE_PATH = os.path.join(SCRIPT_DIR, 'yaksh_data', CHECK_FILE)
OS_NAME = sys.platform
-PYTHON_COMMAND = "python2" if sys.version_info[0] < 3 else "python3"
+PYTHON_COMMAND = "python{0}".format(".".join(map(str, sys.version_info[:2])))
def create_dir(path):
if not os.path.exists(path):