Skip to content

Commit c19566d

Browse files
committed
Add optional environment variable for python program
For code generation.
1 parent 0c75b1a commit c19566d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/scripts/generate_amqp_sources.groovy

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@ def md5(final file) {
1515
}
1616

1717
def generate_source(final type, final filename) {
18+
def pythonBin = System.getenv('PYTHON_BIN') ?: 'python'
1819
String[] command = [
19-
'python',
20+
pythonBin,
2021
properties['script'], type,
2122
properties['spec'],
2223
filename

0 commit comments

Comments
 (0)