I need to know where a code object comes from ; its module. So I (naively) tried :
os.path.abspath(code.co_filename)
But that may or may not work, (I think it's because abspath depends on cwd)
Any way to get the full path of a code object's module ?
EDIT :
The functions from the inspect module : getfile, getsourcefile, getmodule, get only the file name, not its path (same thing as co_filename). Maybe they use abspath.