Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
yorevs committed Jan 17, 2025
1 parent 6d86cda commit 267c537
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,5 @@ build/
venv
response_audio.mp3
logs
models/
mp-data/
Expand Down
6 changes: 3 additions & 3 deletions gradle/dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ import org.gradle.internal.os.OperatingSystem;
String detectPython() {
def pythonHome = System.getenv('PYTHON_HOME') ?: null
if (pythonHome != null) {
return pythonHome + '/python3.11'
return pythonHome + '/python3'
}

def output = new ByteArrayOutputStream()
exec {
commandLine 'bash', '-c', 'command -v python3.11'
commandLine 'bash', '-c', 'command -v python3'
standardOutput = output
}

Expand All @@ -25,7 +25,7 @@ String detectPython() {
print("Python successfully detected: " + pythonHome)

exec {
commandLine python3.11, '-V'
commandLine 'bash', '-c', 'python3 -V'
}

return pythonHome
Expand Down

0 comments on commit 267c537

Please sign in to comment.