Skip to content

Commit 6190b29

Browse files
committed
Bug-fix: msg_context was build up incorrectly during srv_generation by not iterating over all service files in a packge.
1 parent ba5e295 commit 6190b29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/genlisp/generate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -829,7 +829,7 @@ def generate_srv_from_spec(msg_context, spec, search_path, output_dir, package,
829829
ext = '.srv'
830830
srvs = [f[:-len(ext)] for f in os.listdir(os.path.dirname(path)) if f.endswith(ext)]
831831
for s in srvs:
832-
load_srv_from_file(msg_context, path, '%s/%s'%(package, s))
832+
load_srv_from_file(msg_context, '%s/%s.srv'%(os.path.dirname(path),s), '%s/%s'%(package, s))
833833

834834
########################################
835835
# 1. Write the .lisp file

0 commit comments

Comments
 (0)