Automate browser based workflows with AI
Python aiapiautomationbrowserbrowser-automationcomputergptllmplaywrightpowerautomatepuppeteerpythonrpaseleniumvisionworkflow
Update setup.sh to make sure the poetry / python checks are referenced in the main (#119)
Suchintan384e4aca4000
diff --git a/setup.sh b/setup.shindex df8a942a8..bbd75351d 100755--- a/setup.sh+++ b/setup.sh@@ -12,13 +12,15 @@ command_exists() {command -v "$1" &> /dev/null}-# Ensure required commands are available-for cmd in poetry python3.11; do- if ! command_exists "$cmd"; then- echo "Error: $cmd is not installed." >&2- exit 1- fi-done+ensure_required_commands() {+ # Ensure required commands are available+ for cmd in poetry do+ if ! command_exists "$cmd"; then+ echo "Error: $cmd is not installed." >&2+ exit 1+ fi+ done+}# Function to update or add environment variable in .env fileupdate_or_add_env_var() {@@ -152,7 +154,11 @@ remove_poetry_env() {# Choose python versionchoose_python_version_or_fail() {- poetry env use python3.11 || { echo "Error: Python 3.11 is not installed."; exit 1; }+ # https://github.com/python-poetry/poetry/issues/2117+ # Py --list-paths+ # This will output which paths are being used for Python 3.11+ # Windows users need to poetry env use {{ Py --list-paths with 3.11}}+ poetry env use python3.11 || { echo "Error: Python 3.11 is not installed. If you're on Windows, check out https://github.com/python-poetry/poetry/issues/2117 to unblock yourself"; exit 1; }}@@ -256,6 +262,7 @@ create_organization() {# Main functionmain() {+ ensure_required_commandsinitialize_env_filechoose_python_version_or_failremove_poetry_env