Falko Schindler 1 年間 前
コミット
323844e866
1 ファイル変更1 行追加1 行削除
  1. 1 1
      nicegui/nicegui.py

+ 1 - 1
nicegui/nicegui.py

@@ -49,7 +49,7 @@ def get_dependencies(name: str, file: str):
     if name in libraries and libraries[name]['path'].exists():
         filepath = Path(libraries[name]['path']).parent / file
         if filepath.exists() and not filepath.is_dir():
-            return FileResponse(file, media_type='text/javascript')
+            return FileResponse(filepath, media_type='text/javascript')
         return FileResponse(libraries[name]['path'], media_type='text/javascript')
     raise HTTPException(status_code=404, detail=f'dependency "{name}" not found')