Skip to content

Commit 5f4775b

Browse files
committed
Added main.py for build process
1 parent 1590111 commit 5f4775b

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

main.py

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import streamlit
2+
import pandas
3+
import streamlit.web.cli as stcli
4+
import streamlit.runtime.scriptrunner.magic_funcs
5+
import os, sys
6+
from main import algo
7+
import gui
8+
from sql import func
9+
10+
11+
def resolve_path(path):
12+
resolved_path = os.path.abspath(os.path.join(os.getcwd(), path))
13+
return resolved_path
14+
15+
16+
if __name__ == "__main__":
17+
sys.argv = [
18+
"streamlit",
19+
"run",
20+
resolve_path("gui/__main__.py"),
21+
"--global.developmentMode=false",
22+
]
23+
sys.exit(stcli.main())
24+
25+
#cxfreeze --script main.py
26+
#cx_freeze

0 commit comments

Comments
 (0)