1. CJ Gaconnet
  2. rope


angri  committed b4e28f3

base/stdmods.py: use distutils facilities to get stdlib path

previous code "inspect.getsourcefile(inspect)" reported not to work on OS X.
thanks jeremylujan for proposal.

  • Participants
  • Parent commits 78feaae
  • Branches trunk

Comments (0)

Files changed (1)

File rope/base/stdmods.py

View file
 def _stdlib_path():
-    import inspect
-    return os.path.dirname(inspect.getsourcefile(inspect))
+    import distutils.sysconfig
+    return distutils.sysconfig.get_python_lib(standard_lib=True)
 def standard_modules():