mirror of
https://github.com/koush/scrypted.git
synced 2026-05-04 21:30:30 +01:00
server: relax python3 version
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user