MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / MDK4Project

Function MDK4Project

tools/targets/keil.py:309–327  ·  view source on GitHub ↗
(env, target, script)

Source from the content-addressed store, hash-verified

307 out.close()
308
309def MDK4Project(env, target, script):
310
311 if os.path.isfile('template.uvproj') is False:
312 print ('Warning: The template project file [template.uvproj] not found!')
313 return
314
315 template_tree = etree.parse('template.uvproj')
316
317 MDK45Project(env, template_tree, target, script)
318
319 # remove project.uvopt file
320 project_uvopt = os.path.abspath(target).replace('uvproj', 'uvopt')
321 if os.path.isfile(project_uvopt):
322 os.unlink(project_uvopt)
323
324 # copy uvopt file
325 if os.path.exists('template.uvopt'):
326 import shutil
327 shutil.copy2('template.uvopt', '{}.uvopt'.format(os.path.splitext(target)[0]))
328import threading
329import time
330def monitor_log_file(log_file_path):

Callers 1

GenTargetProjectFunction · 0.90

Calls 1

MDK45ProjectFunction · 0.85

Tested by

no test coverage detected