Page config error when running a Streamlit script from inside another

My folder structure:

project/
- app1.py
- authorise.py

Both apps have a config set at the top. I run authorise.py and once a user is authenticated, authorise will use exec(open(project/app1.py).read()) to send that user to the app

The problem is that once a user gets authenticated, I get a set_page_config error telling me it needs to be set only once per page

Iโ€™m pretty sure this worked when I ran it about a week or so ago. Not sure what went wrong

Works when I remove page config from app1. Seems like itโ€™s not being treated as its own app; rather a continuation of the first script thatโ€™s run. Running authorise without config and app1 with config doesnโ€™t work either

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.