Hi,all!
I am trying to call python script
data "external" "example" {
program = ["python", "${path.module}/smtp_credentials_generate.py ${aws_iam_access_key.ses_user_key_nonprd.secret} ${var.replica_region}"]
}
│ Platform: windows
│ Program: "python"
│ Error: exec: "python": executable file not found in %PATH%
but it cannot find python on %Path%.
I have set path to python in windows env variables and i can see it when i echo %Path%.
I tried with python3 , same error. i tried giving full path to python program.
data "external" "example" {
program = ["C:\\Users\\...........\\AppData\\Local\\Microsoft\\WindowsApps\\python", "${path.module}/smtp_credentials_generate.py ${aws_iam_access_key.ses_user_key_nonprd.secret} ${var.replica_region}"]
}
│ Platform: windows
│ Program: "C:\\Users\\......\\AppData\\Local\\Microsoft\\WindowsApps\\python"
│ Error: exec: "C:\\Users\\.....\\AppData\\Local\\Microsoft\\WindowsApps\\python": file does not exist
but even in cmd when i call it , python is opening
i tried also with path./python.exe same result.
What is wrong with my path ?