mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-17 15:03:02 +00:00
check for built css as well in data-files lookup
avoids serving incomplete files
This commit is contained in:
@@ -13,7 +13,8 @@ def get_data_files():
|
|||||||
# walk up, looking for prefix/share/jupyter
|
# walk up, looking for prefix/share/jupyter
|
||||||
while path != '/':
|
while path != '/':
|
||||||
share_jupyter = join(path, 'share', 'jupyter', 'hub')
|
share_jupyter = join(path, 'share', 'jupyter', 'hub')
|
||||||
if exists(join(share_jupyter, 'static', 'components')):
|
static = join(share_jupyter, 'static')
|
||||||
|
if all(exists(join(static, f)) for f in ['components', 'css']):
|
||||||
return share_jupyter
|
return share_jupyter
|
||||||
path, _ = split(path)
|
path, _ = split(path)
|
||||||
# didn't find it, give up
|
# didn't find it, give up
|
||||||
|
Reference in New Issue
Block a user