python find out which directory it's poitning to for modules code example Example: python get packages path path = os.path.dirname(a_module.__file__)