|
@@ -39,12 +39,13 @@ def move_xosc_before_simulation(root_path):
|
|
|
# 打印根元素的标签名
|
|
|
src_file_prefix = path3
|
|
|
if 'LogicFile' == node1.tag:
|
|
|
- if xodr in node1.get('filepath'):
|
|
|
- shutil.copy(src_file_prefix + xodr, xodr_path)
|
|
|
- node1.set('filepath', xodr_path)
|
|
|
+ shutil.copy(src_file_prefix + xodr, xodr_path)
|
|
|
+ node1.set('filepath', xodr_path)
|
|
|
+ logging.info('更新 xodr 路径为:%s' % xodr_path)
|
|
|
if 'SceneGraphFile' == node1.tag:
|
|
|
shutil.copy(src_file_prefix + osgb, osgb_path)
|
|
|
node1.set('filepath', osgb_path)
|
|
|
+ logging.info('更新 osgb 路径为:%s' % osgb_path)
|
|
|
if node0.tag == 'Entities':
|
|
|
for node1 in node0:
|
|
|
if node1.get("name") == 'Ego':
|