@@ -135,13 +135,14 @@ def xpcc_communication_header(env, xmlfile, container, path=None, dtdPath=None,
135
135
# -----------------------------------------------------------------------------
136
136
def generate (env , ** kw ):
137
137
env .SetDefault (XPCC_SYSTEM_DESIGN_SCANNERS = {})
138
+ env .SetDefault (PYTHON3 = sys .executable )
138
139
env ['XPCC_SYSTEM_DESIGN_SCANNERS' ]['XML' ] = SCons .Script .Scanner (
139
140
function = xml_include_scanner ,
140
141
skeys = ['.xml' ])
141
142
env ['BUILDERS' ]['SystemCppPackets' ] = \
142
143
SCons .Script .Builder (
143
144
action = SCons .Action .Action (
144
- 'python3 "${XPCC_SYSTEM_DESIGN}/builder/cpp_packets.py" ' \
145
+ '$PYTHON3 "${XPCC_SYSTEM_DESIGN}/builder/cpp_packets.py" ' \
145
146
'--source_path ${TARGETS[0].dir} ' \
146
147
'--header_path ${TARGETS[1].dir} ' \
147
148
'--dtdpath "${dtdPath}" ' \
@@ -158,7 +159,7 @@ def generate(env, **kw):
158
159
env ['BUILDERS' ]['SystemCppIdentifier' ] = \
159
160
SCons .Script .Builder (
160
161
action = SCons .Action .Action (
161
- 'python3 "${XPCC_SYSTEM_DESIGN}/builder/cpp_identifier.py" ' \
162
+ '$PYTHON3 "${XPCC_SYSTEM_DESIGN}/builder/cpp_identifier.py" ' \
162
163
'--outpath ${TARGET.dir} ' \
163
164
'--dtdpath "${dtdPath}" ' \
164
165
'--namespace "${namespace}" ' \
@@ -174,7 +175,7 @@ def generate(env, **kw):
174
175
env ['BUILDERS' ]['SystemCppPostman' ] = \
175
176
SCons .Script .Builder (
176
177
action = SCons .Action .Action (
177
- 'python3 "${XPCC_SYSTEM_DESIGN}/builder/cpp_postman.py" ' \
178
+ '$PYTHON3 "${XPCC_SYSTEM_DESIGN}/builder/cpp_postman.py" ' \
178
179
'--container "${container}" ' \
179
180
'--outpath ${TARGET.dir} ' \
180
181
'--dtdpath "${dtdPath}" ' \
@@ -191,7 +192,7 @@ def generate(env, **kw):
191
192
env ['BUILDERS' ]['SystemCppCommunication' ] = \
192
193
SCons .Script .Builder (
193
194
action = SCons .Action .Action (
194
- 'python3 "${XPCC_SYSTEM_DESIGN}/builder/cpp_communication.py" ' \
195
+ '$PYTHON3 "${XPCC_SYSTEM_DESIGN}/builder/cpp_communication.py" ' \
195
196
'--outpath ${TARGET.dir} ' \
196
197
'--dtdpath "${dtdPath}" ' \
197
198
'--namespace "${namespace}" ' \
@@ -207,7 +208,7 @@ def generate(env, **kw):
207
208
env ['BUILDERS' ]['SystemCppXpccTaskCaller' ] = \
208
209
SCons .Script .Builder (
209
210
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" ' \
211
212
'--outpath ${TARGET.dir} ' \
212
213
'--dtdpath "${dtdPath}" ' \
213
214
'--namespace "${namespace}" ' \
0 commit comments