--- a/Globals/__init__.py Mon Apr 15 19:36:22 2013 +0200 +++ b/Globals/__init__.py Mon Apr 22 20:24:58 2013 +0200 @@ -145,6 +145,16 @@ configDir = os.path.expanduser(d) +def getPythonModulesDirectory(): + """ + Function to determine the path to Python's modules directory. + + @return path to the Python modules directory (string) + """ + import distutils.sysconfig + return distutils.sysconfig.get_python_lib(True) + + ################################################################################ ## functions for searching a Python2 interpreter ################################################################################