mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-11-10 10:17:11 +03:00
stdout shouldn't be a constant
This commit is contained in:
parent
197b694cdf
commit
038f03a89f
@ -49,7 +49,7 @@ function verifyPython () {
|
||||
}
|
||||
}
|
||||
|
||||
const stdout = childProcess.execFileSync(pythonExecutable, ['-c', 'import platform\nprint(platform.python_version())'], {env: process.env})
|
||||
let stdout = childProcess.execFileSync(pythonExecutable, ['-c', 'import platform\nprint(platform.python_version())'], {env: process.env})
|
||||
if (stdout.indexOf('+') !== -1) stdout = stdout.replace(/\+/g, '')
|
||||
if (stdout.indexOf('rc') !== -1) stdout = stdout.replace(/rc(.*)$/ig, '')
|
||||
const fullVersion = stdout.toString().trim()
|
||||
|
Loading…
Reference in New Issue
Block a user