From fbc198ba8e21f40ef320197b3e3fe49bf5e3b958 2014-01-31 18:03:56 From: Min RK Date: 2014-01-31 18:03:56 Subject: [PATCH] Merge pull request #4966 from takluyver/sign-blank-app-argv Ignore sys.argv in NotebookNotary when creating a BaseIPythonApplication just for its profile_dir --- diff --git a/IPython/nbformat/sign.py b/IPython/nbformat/sign.py index f13d7cd..c65ad0e 100644 --- a/IPython/nbformat/sign.py +++ b/IPython/nbformat/sign.py @@ -84,7 +84,7 @@ class NotebookNotary(LoggingConfigurable): if app is None: # create an app, without the global instance app = BaseIPythonApplication() - app.initialize() + app.initialize(argv=[]) return app.profile_dir algorithm = Enum(algorithms, default_value='sha256', config=True,