[Tutor] Search package for path to class
Julius Hamilton
juliushamilton100 at gmail.com
Wed May 11 17:13:36 EDT 2022
Hey,
In a Python shell I would like to find the path to a class in a package in
order to import it.
So if class “ServiceRunner” is imported via yapapi.services.service_runner
but I don’t know that, I would like to do something like:
find(“ServiceRunner”)
and return the result
“yapapi.services.service_runner” - assuming I already imported yapapi.
How would this be possible?
Thanks very much,
Julius
More information about the Tutor
mailing list