Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

use endswith()

  • Loading branch information...
commit 11020e437f69376d91521b6e53b2e0f494e44a02 1 parent b3939f2
@ppurka ppurka authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  sagenb/notebook/run_notebook.py
View
2  sagenb/notebook/run_notebook.py
@@ -505,7 +505,7 @@ def notebook_run(self,
directory = '%s/sage_notebook.sagenb' % DOT_SAGENB
else:
directory = directory.rstrip('/')
- if directory[-7:] != '.sagenb':
+ if not directory.endswith('.sagenb'):
directory += '.sagenb'
# First change to the directory that contains the notebook directory
Please sign in to comment.
Something went wrong with that request. Please try again.