Karan Goel commited on
Commit
e3adc12
ยท
1 Parent(s): 99d06a3
Files changed (1) hide show
  1. tutorial-1.py +3 -3
tutorial-1.py CHANGED
@@ -63,9 +63,9 @@ from fastapi.staticfiles import StaticFiles
63
  # f'VITE_API_URL||"{api_url}"',
64
  # "*.js",
65
  # )
66
- from meerkat.constants import MEERKAT_APP_DIR
67
- print(MEERKAT_APP_DIR)
68
  print("Mounting static files...")
69
- page().mount("/", StaticFiles(directory=os.path.abspath(MEERKAT_APP_DIR + "build/"), html=True), "test")
70
  # page().mount("/static", StaticFiles(directory=os.path.abspath("./temp/"),html = True), "test")
71
  page.launch()
 
63
  # f'VITE_API_URL||"{api_url}"',
64
  # "*.js",
65
  # )
66
+ from meerkat.constants import PathHelper
67
+ print(PathHelper.appdir)
68
  print("Mounting static files...")
69
+ page().mount("/", StaticFiles(directory=os.path.abspath(PathHelper.appdir + "build/"), html=True), "test")
70
  # page().mount("/static", StaticFiles(directory=os.path.abspath("./temp/"),html = True), "test")
71
  page.launch()