Skip to content

Streamlit application installer - application python file not present in the installed location #266

@DiptenduIDEAS

Description

@DiptenduIDEAS

I have the following code in run_app.py

def main():

    # Getting path to python executable (full path of deployed python on Windows)
    executable = sys.executable

    path_to_main = os.path.join(os.path.dirname(__file__), "home.py")

    # Running streamlit server in a subprocess and writing to log file

However, in the installed folder (or its subfolders), the file home.py is missing

image

The run_app.py file is found in the Python folder

Where is the home.py file?

Here is the snippet from installer.cfg

[Application]
name=XInsight
version=0.1
# How to launch the app - this calls the 'main' function from the 'myapp' package:
entry_point=run_app:main
icon=IDEAS-TIH.ico

[Python]
version=3.10.0
bitness=64

and this is the source structure

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions