Ask Your Question

Why separation of *.py and *.h/*.lisp auto generated messages?

asked 2011-06-10 16:26:48 -0600

dejanpan gravatar image

Hi there, this must be a rather obvious thing but I am still not sure about. Why are all auto-generated *.lisp and *.h msgs placed in msg_gen folder but *.py ones into src/pkg_name/ folder?

thx, D.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2011-06-11 08:33:27 -0600

kwc gravatar image

msg_gen is a better location as it keeps auto-generated code separate from actual source code, but some languages make it more difficult to combine source files from multiple directories into the same namespace. For example, if you have two directories in Python, each with name 'package', the first one on your PYTHONPATH will get the 'package' namespace, and the other will be ignored.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2011-06-10 16:26:48 -0600

Seen: 183 times

Last updated: Jun 11 '11