347 if finished: |
347 if finished: |
348 output = str(proc.readAllStandardOutput(), |
348 output = str(proc.readAllStandardOutput(), |
349 Preferences.getSystem("IOEncoding"), |
349 Preferences.getSystem("IOEncoding"), |
350 'replace') |
350 'replace') |
351 if exeModule and exeModule[0] == "-m" and \ |
351 if exeModule and exeModule[0] == "-m" and \ |
352 "ImportError:" in output: |
352 ("ImportError:" in output or |
|
353 "ModuleNotFoundError:" in output): |
353 version = self.tr("(module not found)") |
354 version = self.tr("(module not found)") |
354 else: |
355 else: |
355 if versionRe is None: |
356 if versionRe is None: |
356 versionRe = "^{0}".format( |
357 versionRe = "^{0}".format( |
357 re.escape(versionStartsWith)) |
358 re.escape(versionStartsWith)) |