Answers for "find location of a class in python"

0

find location of a class in python

import inspect
inspect.getfile(C.__class__)
Posted by: Guest on November-20-2020
0

find location of a class in python

import sys, os
os.path.abspath(sys.modules[LocationArtifact.__module__].__file__)
Posted by: Guest on November-20-2020

Code answers related to "find location of a class in python"

Python Answers by Framework

Browse Popular Code Answers by Language