(self)
| 133 | return res |
| 134 | |
| 135 | def check(self): |
| 136 | if not os.path.exists(self): |
| 137 | print('Error:', self.orig, 'does not exist') |
| 138 | sys.exit(1) |
| 139 | if os.path.isdir(self): |
| 140 | print('Error:', self.orig, 'is a directory') |
| 141 | sys.exit(1) |
| 142 | |
| 143 | # Replace pdb's dir with script's dir in front of module search path. |
| 144 | sys.path[0] = os.path.dirname(self) |
| 145 | |
| 146 | @property |
| 147 | def filename(self): |