117 code over a network... This logic deals with that. |
116 code over a network... This logic deals with that. |
118 |
117 |
119 @param frame the frame object |
118 @param frame the frame object |
120 @return fixed up file name (string) |
119 @return fixed up file name (string) |
121 """ |
120 """ |
122 if sys.version_info[0] == 2: |
121 versionExt = '.py3' |
123 versionExt = '.py2' |
|
124 else: |
|
125 versionExt = '.py3' |
|
126 |
122 |
127 # get module name from __file__ |
123 # get module name from __file__ |
128 if (not isinstance(frame, profile.Profile.fake_frame) and |
124 if (not isinstance(frame, profile.Profile.fake_frame) and |
129 '__file__' in frame.f_globals): |
125 '__file__' in frame.f_globals): |
130 root, ext = os.path.splitext(frame.f_globals['__file__']) |
126 root, ext = os.path.splitext(frame.f_globals['__file__']) |