1 Star 3 Fork 0

Huterox/AutoDevOps-oups

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
Clone or Download
run_app.py 800 Bytes
Copy Edit Raw Blame History
Huterox authored 2024-08-09 17:41 . add:pakeage command
"""
@FileName:run_app.py.py
@Author:Huterox
@Description:Go For It
@Time:2024/6/11 11:42
@Copyright:©2018-2024 awesome!
"""
import os
import sys
from base import run_app
import streamlit.web.cli as stcli
def resolve_path(path):
resolved_path = os.path.abspath(os.path.join(os.getcwd(), path))
return resolved_path
def run_app_path():
os.makedirs(run_app,exist_ok=True)
out = f"{run_app}/main.py"
return out
if __name__ == "__main__":
# sys.argv = [
# "streamlit",
# "run",
# resolve_path("main.py"),
# "--global.developmentMode=false",
# ]
sys.argv = [
"streamlit",
"run",
run_app_path(),
"--server.port=8080",
"--global.developmentMode=false",
]
sys.exit(stcli.main())
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/Huterox/auto-dev-ops-oups.git
git@gitee.com:Huterox/auto-dev-ops-oups.git
Huterox
auto-dev-ops-oups
AutoDevOps-oups
master

Search