Move glob to global level import.

This commit is contained in:
Stefan van der Walt 2011-08-18 19:31:16 -07:00
parent fb2c31b2ea
commit 55ffc1c083

View File

@ -19,6 +19,7 @@ Authors:
import datetime
import os
import uuid
import glob
from tornado import web
@ -52,8 +53,6 @@ class NotebookManager(LoggingConfigurable):
dict(notebook_id=notebook,name=name)
"""
import glob
names = glob.glob(os.path.join(self.notebook_dir,
'*' + self.filename_ext))
names = [os.path.splitext(os.path.basename(name))[0]