diff --git a/msal_streamlit_authentication/__init__.py b/msal_streamlit_authentication/__init__.py index a70900e..99cf20f 100644 --- a/msal_streamlit_authentication/__init__.py +++ b/msal_streamlit_authentication/__init__.py @@ -10,7 +10,8 @@ if _USE_WEB_DEV_SERVER: _component_func = components.declare_component(name=COMPONENT_NAME, url=_WEB_DEV_SERVER_URL) else: - build_dir = str(Path(__file__).parent / "frontend" / "dist") + parent_dir = os.path.dirname(os.path.abspath(__file__)) + build_dir = os.path.join(parent_dir, "frontend", "dist") _component_func = components.declare_component(name=COMPONENT_NAME, path=build_dir)