summaryrefslogtreecommitdiff
path: root/tasks.py
diff options
context:
space:
mode:
authorpllvsis2019-08-20 12:30:11 +0530
committerGitHub2019-08-20 12:30:11 +0530
commitb029dd8a9f5a3a09d1e1629b78d3923606fa4ad2 (patch)
tree16d7ab22f2eeedefdec6c1377ffa3030f91f4f5f /tasks.py
parent9522f91a0d34d83bde7c6d9ceb4f941767351284 (diff)
downloadonline_test-b029dd8a9f5a3a09d1e1629b78d3923606fa4ad2.tar.gz
online_test-b029dd8a9f5a3a09d1e1629b78d3923606fa4ad2.tar.bz2
online_test-b029dd8a9f5a3a09d1e1629b78d3923606fa4ad2.zip
Fixed Python version reference in command line
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):