Skip to content

Commit 4b0df96

Browse files
committed
fix path
1 parent 84844fd commit 4b0df96

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

ros2model/api/model_generator/message_generator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
from ament_index_python import get_package_share_directory
2626

2727
Template_Folder_ROS = Path(get_package_share_directory("ros2model") + "/templates")
28-
Template_ROS = Path(Template_Folder_ROS / "message.ros2.j2")
28+
Template_ROS = Path(Template_Folder_ROS / "message.ros.j2")
2929
except ImportError:
3030
Template_ROS = None
3131

@@ -35,7 +35,7 @@ def __init__(self, template_path=None) -> None:
3535
if template_path != None:
3636
self.template_path = Path(template_path).resolve()
3737
elif Template_ROS != None and Template_ROS.is_file():
38-
self.template_path = Template
38+
self.template_path = Template_ROS
3939
elif Template.is_file():
4040
self.template_path = Template
4141
else:

test/unittest/test_generate_component.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,6 @@
4343
],
4444
)
4545

46-
from devtools import pprint
47-
48-
# pprint(test_model)
49-
5046
test_dir = "test"
5147
output_folder = Path(__file__).parent.parent / "outputs"
5248

0 commit comments

Comments
 (0)