Skip to content

Commit 825e53e

Browse files
salkiniumchris-durand
authored andcommitted
[scons] Use the same Python for XPCC builders
1 parent efb40cc commit 825e53e

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

tools/build_script_generator/scons/site_tools/xpcc_generator.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -135,13 +135,14 @@ def xpcc_communication_header(env, xmlfile, container, path=None, dtdPath=None,
135135
# -----------------------------------------------------------------------------
136136
def generate(env, **kw):
137137
env.SetDefault(XPCC_SYSTEM_DESIGN_SCANNERS = {})
138+
env.SetDefault(PYTHON3 = sys.executable)
138139
env['XPCC_SYSTEM_DESIGN_SCANNERS']['XML'] = SCons.Script.Scanner(
139140
function = xml_include_scanner,
140141
skeys = ['.xml'])
141142
env['BUILDERS']['SystemCppPackets'] = \
142143
SCons.Script.Builder(
143144
action = SCons.Action.Action(
144-
'python3 "${XPCC_SYSTEM_DESIGN}/builder/cpp_packets.py" ' \
145+
'$PYTHON3 "${XPCC_SYSTEM_DESIGN}/builder/cpp_packets.py" ' \
145146
'--source_path ${TARGETS[0].dir} ' \
146147
'--header_path ${TARGETS[1].dir} ' \
147148
'--dtdpath "${dtdPath}" ' \
@@ -158,7 +159,7 @@ def generate(env, **kw):
158159
env['BUILDERS']['SystemCppIdentifier'] = \
159160
SCons.Script.Builder(
160161
action = SCons.Action.Action(
161-
'python3 "${XPCC_SYSTEM_DESIGN}/builder/cpp_identifier.py" ' \
162+
'$PYTHON3 "${XPCC_SYSTEM_DESIGN}/builder/cpp_identifier.py" ' \
162163
'--outpath ${TARGET.dir} ' \
163164
'--dtdpath "${dtdPath}" ' \
164165
'--namespace "${namespace}" ' \
@@ -174,7 +175,7 @@ def generate(env, **kw):
174175
env['BUILDERS']['SystemCppPostman'] = \
175176
SCons.Script.Builder(
176177
action = SCons.Action.Action(
177-
'python3 "${XPCC_SYSTEM_DESIGN}/builder/cpp_postman.py" ' \
178+
'$PYTHON3 "${XPCC_SYSTEM_DESIGN}/builder/cpp_postman.py" ' \
178179
'--container "${container}" ' \
179180
'--outpath ${TARGET.dir} ' \
180181
'--dtdpath "${dtdPath}" ' \
@@ -191,7 +192,7 @@ def generate(env, **kw):
191192
env['BUILDERS']['SystemCppCommunication'] = \
192193
SCons.Script.Builder(
193194
action = SCons.Action.Action(
194-
'python3 "${XPCC_SYSTEM_DESIGN}/builder/cpp_communication.py" ' \
195+
'$PYTHON3 "${XPCC_SYSTEM_DESIGN}/builder/cpp_communication.py" ' \
195196
'--outpath ${TARGET.dir} ' \
196197
'--dtdpath "${dtdPath}" ' \
197198
'--namespace "${namespace}" ' \
@@ -207,7 +208,7 @@ def generate(env, **kw):
207208
env['BUILDERS']['SystemCppXpccTaskCaller'] = \
208209
SCons.Script.Builder(
209210
action = SCons.Action.Action(
210-
'python3 "${XPCC_SYSTEM_DESIGN}/builder/cpp_xpcc_task_caller.py" ' \
211+
'$PYTHON3 "${XPCC_SYSTEM_DESIGN}/builder/cpp_xpcc_task_caller.py" ' \
211212
'--outpath ${TARGET.dir} ' \
212213
'--dtdpath "${dtdPath}" ' \
213214
'--namespace "${namespace}" ' \

0 commit comments

Comments
 (0)