Set PYTHONPATH in deployed app?

Locally I can run “export PYTHONPATH=$(PWD)” prior to starting my application, how can I do the equivalent on a cloud deployed application?

TOML doesnt seem to allow for variables in the file. Not sure what the path would be to set it statically. Can I change the start up command to “export PYTHONPATH=$(PWD) $$ streamlit run (path to my streamlit file)”

Any helps appreciated, thanks!

I think you want sys.path.

1 Like

You are right thank you… have used the env variable approach for so long I forgot about this :sweat_smile:

1 Like