Commits

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

Comments (0)

Files changed (1)

File rope/base/stdmods.py

 
 
 def _stdlib_path():
-    import inspect
-    return os.path.dirname(inspect.getsourcefile(inspect))
+    import distutils.sysconfig
+    return distutils.sysconfig.get_python_lib(standard_lib=True)
 
 @utils.cached(1)
 def standard_modules():