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)
| 908 | return filename |
| 909 | |
| 910 | def getabsfile(object, _filename=None): |
| 911 | """Return an absolute path to the source or compiled file for an object. |
| 912 | |
| 913 | The idea is for each object to have a unique origin, so this routine |
| 914 | normalizes the result as much as possible.""" |
| 915 | if _filename is None: |
| 916 | _filename = getsourcefile(object) or getfile(object) |
| 917 | return os.path.normcase(os.path.abspath(_filename)) |
| 918 | |
| 919 | modulesbyfile = {} |
| 920 | _filesbymodname = {} |
no test coverage detected
searching dependent graphs…