#!/usr/local/bin/python3 from importlib.machinery import PathFinder import os spec = PathFinder.find_spec('os', os.__path__[0]) print(spec)