From 17fd04f83222b082860184885cfc2196f5d787b7 2014-04-22 00:32:58 From: Jessica B. Hamrick Date: 2014-04-22 00:32:58 Subject: [PATCH] Use dirname rather than split --- 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):