diff --git a/IPython/nbformat/validator.py b/IPython/nbformat/validator.py index 84c12ff..5ce58ac 100644 --- a/IPython/nbformat/validator.py +++ b/IPython/nbformat/validator.py @@ -9,7 +9,7 @@ from IPython.utils.py3compat import iteritems from .current import nbformat, nbformat_schema schema_path = os.path.join( - os.path.split(__file__)[0], "v%d" % nbformat, nbformat_schema) + os.path.dirname(__file__), "v%d" % nbformat, nbformat_schema) def isvalid(nbjson, verbose=False):