Mon, 14 Feb 2022 19:02:24 +0100
Added the use of a cahe to return the result of the PySide2/6 check.
eric7/Utilities/__init__.py | file | annotate | diff | comparison | revisions |
--- a/eric7/Utilities/__init__.py Mon Feb 14 19:01:43 2022 +0100 +++ b/eric7/Utilities/__init__.py Mon Feb 14 19:02:24 2022 +0100 @@ -7,17 +7,18 @@ Package implementing various functions/classes needed everywhere within eric. """ -import os -import sys import codecs -import re +import contextlib +import ctypes import fnmatch +import functools +import getpass import glob -import getpass -import ctypes +import os +import re +import shlex import subprocess # secok -import shlex -import contextlib +import sys def __showwarning(message, category, filename, lineno, file=None, line=""): @@ -1811,6 +1812,7 @@ return toolname +@functools.lru_cache() def checkPyside(variant=2): """ Module function to check the presence of PySide2/PySide6.