[tools][mdk] fix .uvoptx/uvopt project name
e.g. scons --target=mdk5/4 --project-path='test' will generate the test.uvoptx/uvopt file correctly
This commit is contained in:
parent
befa951451
commit
86f127311d
|
@ -330,7 +330,7 @@ def MDK4Project(target, script):
|
|||
# copy uvopt file
|
||||
if os.path.exists('template.uvopt'):
|
||||
import shutil
|
||||
shutil.copy2('template.uvopt', 'project.uvopt')
|
||||
shutil.copy2('template.uvopt', '{}.uvopt'.format(os.path.splitext(target)[0]))
|
||||
|
||||
def MDK5Project(target, script):
|
||||
|
||||
|
@ -349,7 +349,7 @@ def MDK5Project(target, script):
|
|||
# copy uvopt file
|
||||
if os.path.exists('template.uvoptx'):
|
||||
import shutil
|
||||
shutil.copy2('template.uvoptx', 'project.uvoptx')
|
||||
shutil.copy2('template.uvoptx', '{}.uvoptx'.format(os.path.splitext(target)[0]))
|
||||
|
||||
def MDK2Project(target, script):
|
||||
template = open('template.Uv2', "r")
|
||||
|
|
Loading…
Reference in New Issue