server: relax python3 version

This commit is contained in:
Koushik Dutta
2021-12-07 17:41:06 -08:00
parent 47fba69360
commit 0990f5d424
2 changed files with 3 additions and 2 deletions

View File

@@ -164,7 +164,8 @@ class PluginRemote:
if not os.path.exists(python_prefix):
os.makedirs(python_prefix)
python = 'python3.7'
python = 'python%s' % str(sys.version_info[0])+"."+str(sys.version_info[1])
print('python:', python)
if 'requirements.txt' in zip.namelist():
requirements = zip.open('requirements.txt').read()

View File

@@ -236,7 +236,7 @@ export class PluginHost {
path.join(__dirname, '../../python', 'plugin-remote.py'),
)
this.worker = child_process.spawn('python3.7', args, {
this.worker = child_process.spawn('python3', args, {
// stdin, stdout, stderr, peer in, peer out
stdio: ['pipe', 'pipe', 'pipe', 'pipe', 'pipe'],
env: Object.assign({}, process.env, env),