aboutsummaryrefslogtreecommitdiff
path: root/autogpts/autogpt/autogpt.bat
diff options
context:
space:
mode:
Diffstat (limited to 'autogpts/autogpt/autogpt.bat')
-rw-r--r--autogpts/autogpt/autogpt.bat27
1 files changed, 27 insertions, 0 deletions
diff --git a/autogpts/autogpt/autogpt.bat b/autogpts/autogpt/autogpt.bat
new file mode 100644
index 000000000..12b89f212
--- /dev/null
+++ b/autogpts/autogpt/autogpt.bat
@@ -0,0 +1,27 @@
+@echo off
+setlocal enabledelayedexpansion
+
+:FindPythonCommand
+for %%A in (python3 python) do (
+ where /Q %%A
+ if !errorlevel! EQU 0 (
+ set "PYTHON_CMD=%%A"
+ goto :Found
+ )
+)
+
+echo Python not found. Please install Python.
+pause
+exit /B 1
+
+:Found
+%PYTHON_CMD% scripts/check_requirements.py
+if errorlevel 1 (
+ echo
+ poetry install --without dev
+ echo
+ echo Finished installing packages! Starting AutoGPT...
+ echo
+)
+poetry run autogpt %*
+pause