--- a/eric6/Globals/__init__.py Wed May 12 19:47:11 2021 +0200 +++ b/eric6/Globals/__init__.py Wed May 12 19:48:57 2021 +0200 @@ -246,14 +246,18 @@ configDir = os.path.expanduser(d) -def getPythonModulesDirectory(): +def getPythonLibraryDirectory(): """ - Function to determine the path to Python's modules directory. + Function to determine the path to Python's library directory. - @return path to the Python modules directory (string) + @return path to the Python library directory + @rtype str """ import distutils.sysconfig return distutils.sysconfig.get_python_lib(True) +# backward compatibility for eric < 21.6 +getPythonModulesDirectory = getPythonLibraryDirectory +# TODO: eric7: delete this def getPyQt5ModulesDirectory():