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