1. jeremylujan
  2. rope

Commits

jeremylujan  committed 2cd8bb6

Use sys.prefix to get location of stdlib

  • Participants
  • Parent commits 78feaae
  • Branches trunk

Comments (0)

Files changed (1)

File rope/base/stdmods.py

View file
  • Ignore whitespace
 
 
 def _stdlib_path():
-    import inspect
-    return os.path.dirname(inspect.getsourcefile(inspect))
+    return sys.prefix
 
 @utils.cached(1)
 def standard_modules():