Browse Source

Handle case of no built assets

Steven Silvester 7 years ago
parent
commit
96b0303e4d
1 changed files with 4 additions and 0 deletions
  1. 4 0
      setupbase.py

+ 4 - 0
setupbase.py

@@ -99,7 +99,11 @@ def find_data_files():
     """
     Find data_files.
     """
+    if not os.path.exists(pjoin('jupyterlab', 'build')):
+        return []
+
     files = []
+
     static_files = os.listdir(pjoin('jupyterlab', 'build'))
     files.append(('share/jupyter/lab/static',
         ['jupyterlab/build/%s' % f for f in static_files]))