From a28f1c3ef7e57297cf3ba5e02b4420e1759b0ceb Mon Sep 17 00:00:00 2001 From: Chris Hoge Date: Thu, 4 May 2023 12:20:39 -0700 Subject: [PATCH] Fix problem where `python` may not be available as python3 default app python3 isn't always available as python. Chainging system call to `python3` to be more portable. --- label_studio_ml/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/label_studio_ml/server.py b/label_studio_ml/server.py index b7186689..698fc009 100644 --- a/label_studio_ml/server.py +++ b/label_studio_ml/server.py @@ -140,7 +140,7 @@ def use(filename): def start_server(args, subprocess_params): project_dir = os.path.join(args.root_dir, args.project_name) wsgi = os.path.join(project_dir, '_wsgi.py') - os.system('python ' + wsgi + ' ' + ' '.join(subprocess_params)) + os.system('python3 ' + wsgi + ' ' + ' '.join(subprocess_params)) def deploy_to_gcp(args):