Preferences/ProgramsDialog.py

changeset 6288
67ae52179c8b
parent 6083
fc99172cd83e
child 6291
94e0e688dcad
equal deleted inserted replaced
6287:9a193ff6d24a 6288:67ae52179c8b
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))

eric ide

mercurial