File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,9 +2,9 @@ environment:
22 name : document-generation
33 location : eastus
44
5- # name: document-generation
6- # metadata:
7- # template: document-generation@1.0
5+ name : document-generation
6+ metadata :
7+ template : document-generation@1.0
88
99requiredVersions :
1010 azd : ' >= 1.18.0'
Original file line number Diff line number Diff line change 146146# Determine the correct Python command
147147if command -v python3 && python3 --version & > /dev/null; then
148148 PYTHON_CMD=" python3"
149- elif command -v python && py --version & > /dev/null; then
149+ elif command -v python && python --version & > /dev/null; then
150150 PYTHON_CMD=" python"
151151else
152152 echo " Python is not installed on this system. Or it is not added in the PATH."
@@ -182,15 +182,15 @@ error_flag=false
182182# Run the scripts
183183echo " Running the python scripts"
184184echo " Creating the search index"
185- py infra/scripts/index_scripts/01_create_search_index.py
185+ python infra/scripts/index_scripts/01_create_search_index.py
186186if [ $? -ne 0 ]; then
187187 echo " Error: 01_create_search_index.py failed."
188188 error_flag=true
189189fi
190190
191191if [ " $error_flag " = false ]; then
192192 echo " Processing the data"
193- py infra/scripts/index_scripts/02_process_data.py
193+ python infra/scripts/index_scripts/02_process_data.py
194194 if [ $? -ne 0 ]; then
195195 echo " Error: 02_process_data.py failed."
196196 error_flag=true
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments