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