-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.bat
More file actions
40 lines (33 loc) · 933 Bytes
/
Copy pathstart.bat
File metadata and controls
40 lines (33 loc) · 933 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
@echo off
title Microgrid Simulator
echo ================================================================
echo Smart Microgrid Planning Platform
echo ================================================================
echo.
echo Starting application...
echo.
REM Check if Python is installed
python --version >nul 2>&1
if errorlevel 1 (
echo Error: Python not found
echo Please install Python 3.8+
pause
exit /b 1
)
REM Check if in correct directory
if not exist "app.py" (
echo Error: app.py file not found
echo Please run this script in the correct project directory
pause
exit /b 1
)
REM Start Streamlit application
echo Access URL: http://localhost:8501
echo Press Ctrl+C to stop the application
echo.
echo ================================================================
echo.
streamlit run app.py --server.headless false --browser.gatherUsageStats false
echo.
echo Application stopped
pause