1270 return afn |
1270 return afn |
1271 |
1271 |
1272 # Nothing found. |
1272 # Nothing found. |
1273 return fn |
1273 return fn |
1274 |
1274 |
1275 def shouldSkip(self, fn): |
|
1276 """ |
|
1277 Public method to check if a file should be skipped. |
|
1278 |
|
1279 @param fn filename to be checked |
|
1280 @return non-zero if fn represents a file we are 'skipping', |
|
1281 zero otherwise. |
|
1282 """ |
|
1283 if self.mainThread.tracePython: # trace into Python library |
|
1284 return False |
|
1285 |
|
1286 # Eliminate anything that is part of the Python installation. |
|
1287 afn = self.absPath(fn) |
|
1288 for d in self.skipdirs: |
|
1289 if afn.startswith(d): |
|
1290 return True |
|
1291 |
|
1292 # special treatment for paths containing site-packages or dist-packages |
|
1293 for part in ["site-packages", "dist-packages"]: |
|
1294 if part in afn: |
|
1295 return True |
|
1296 |
|
1297 return False |
|
1298 |
|
1299 def getRunning(self): |
1275 def getRunning(self): |
1300 """ |
1276 """ |
1301 Public method to return the main script we are currently running. |
1277 Public method to return the main script we are currently running. |
1302 |
1278 |
1303 @return flag indicating a running debug session (boolean) |
1279 @return flag indicating a running debug session (boolean) |