diff --git a/IPython/nbconvert/nbconvertapp.py b/IPython/nbconvert/nbconvertapp.py index 8d36aeb..78cc30a 100755 --- a/IPython/nbconvert/nbconvertapp.py +++ b/IPython/nbconvert/nbconvertapp.py @@ -136,9 +136,18 @@ class NbConvertApp(BaseIPythonApplication): @catch_config_error def initialize(self, argv=None): super(NbConvertApp, self).initialize(argv) + self.init_path() self.init_notebooks() self.init_writer() + + def init_path(self): + """ + Add the cwd to the sys.path ($PYTHONPATH) + """ + sys.path.append(os.getcwd()) + + def init_notebooks(self): """Construct the list of notebooks. If notebooks are passed on the command-line,