提交 86f12731 编写于 作者: mysterywolf's avatar mysterywolf

[tools][mdk] fix .uvoptx/uvopt project name

e.g. scons --target=mdk5/4 --project-path='test'
will generate the test.uvoptx/uvopt file correctly
上级 befa9514
......@@ -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")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册