Senthil <orsent...@gmail.com> added the comment: This is an invalid bug.
python -m 'compileall' -d pdir actdir all the files in the actdir will be compiled and it will appear as though the files are getting compiled from pdir. That is the intended purpose of the -d switch, as I can see from the sourcecode and from the definition. So, when you are using inspect module to do inspect.getfile(func_obj), it would return filename as pdir/filename.py To get the actual file, you might want to do inspect.getabsfile(func_obj) Closing this bug as Invalid. ---------- nosy: +orsenthil resolution: -> invalid _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue1738179> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com