(self, **kwargs)
| 219 | |
| 220 | @catch_config_error |
| 221 | def __init__(self, **kwargs): |
| 222 | super(BaseIPythonApplication, self).__init__(**kwargs) |
| 223 | # ensure current working directory exists |
| 224 | try: |
| 225 | os.getcwd() |
| 226 | except: |
| 227 | # exit if cwd doesn't exist |
| 228 | self.log.error("Current working directory doesn't exist.") |
| 229 | self.exit(1) |
| 230 | |
| 231 | #------------------------------------------------------------------------- |
| 232 | # Various stages of Application creation |