Return an absolute path to the source or compiled file for an object. The idea is for each object to have a unique origin, so this routine normalizes the result as much as possible.
(object, _filename=None)
| 884 | return filename |
| 885 | |
| 886 | def getabsfile(object, _filename=None): |
| 887 | """Return an absolute path to the source or compiled file for an object. |
| 888 | |
| 889 | The idea is for each object to have a unique origin, so this routine |
| 890 | normalizes the result as much as possible.""" |
| 891 | if _filename is None: |
| 892 | _filename = getsourcefile(object) or getfile(object) |
| 893 | return os.path.normcase(os.path.abspath(_filename)) |
| 894 | |
| 895 | modulesbyfile = {} |
| 896 | _filesbymodname = {} |
no test coverage detected