(self, **kwargs)
| 257 | |
| 258 | @catch_config_error |
| 259 | def __init__(self, **kwargs): |
| 260 | super(BaseIPythonApplication, self).__init__(**kwargs) |
| 261 | # ensure current working directory exists |
| 262 | try: |
| 263 | os.getcwd() |
| 264 | except: |
| 265 | # exit if cwd doesn't exist |
| 266 | self.log.error("Current working directory doesn't exist.") |
| 267 | self.exit(1) |
| 268 | |
| 269 | #------------------------------------------------------------------------- |
| 270 | # Various stages of Application creation |