[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:
Meco Man 2023-07-23 17:44:21 -04:00
parent befa951451
commit 86f127311d
1 changed files with 2 additions and 2 deletions

View File

@ -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")