remove redundant abs_path

This commit is contained in:
Manuel Riel 2014-10-06 20:49:27 +02:00
parent fc59a1b927
commit c5069fe1fd

View File

@ -30,8 +30,7 @@ class FilesHandler(IPythonHandler):
@web.authenticated
def get(self, path):
cm = self.settings['contents_manager']
abs_path = os.path.join(cm.root_dir, path)
if cm.is_hidden(abs_path):
if cm.is_hidden(path):
self.log.info("Refusing to serve hidden file, via 404 Error")
raise web.HTTPError(404)