Skip to content

Commit

Permalink
fix(plc4py): Add wait for process output to python checks
Browse files Browse the repository at this point in the history
  • Loading branch information
hutcheb committed Jan 4, 2023
1 parent d867414 commit f18bc8b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/script/prerequisiteCheck.groovy
Expand Up @@ -189,8 +189,8 @@ def checkPython() {
def stdErr = new StringBuilder()
process.consumeProcessOutput(stdOut, stdErr)
process.waitForOrKill(5000)
process.waitForProcessOutput()
Matcher matcher = extractVersion(stdOut + stdErr)
println stdOut
if (matcher.size() > 0) {
String curVersion = matcher[0][1]
def result = checkVersionAtLeast(curVersion, "3.7.0")
Expand Down Expand Up @@ -220,6 +220,7 @@ def checkPythonVenv() {
def stdErr = new StringBuilder()
process.consumeProcessOutput(stdOut, stdErr)
process.waitForOrKill(500)
process.waitForProcessOutput()
if (stdErr.contains("No module named")) {
println "missing"
allConditionsMet = false
Expand Down

0 comments on commit f18bc8b

Please sign in to comment.