Globals/__init__.py

changeset 2608
01118174a2f5
parent 2302
f29e9405c851
child 2614
9c49b4419ea7
child 3163
9f50365a0870
--- 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
 ################################################################################

eric ide

mercurial