axis_camera icon indicating copy to clipboard operation
axis_camera copied to clipboard

separate executable scripts factoring out common code into modules

Open jack-oquin opened this issue 12 years ago • 2 comments

Make modules in src/ with code common to the various nodes.

Move the nodes themselves into scripts/ (standard location). Each one should just import and then invoke an appropriate module function.

jack-oquin avatar Apr 10 '13 03:04 jack-oquin

I recommend that the documented node names not end in ".py". The fact that they are written in Python is an implementation detail. Users should not care.

That change (if accepted) should be made with "tick-tock" backwards compatibility. For one release we would support the old names, issuing a deprecation warning if they are invoked. In the following release the old names would be removed.

jack-oquin avatar Apr 12 '13 20:04 jack-oquin

Having most of the logic in Python modules generally makes it easier to write unit tests (see issue #16).

jack-oquin avatar Apr 12 '13 20:04 jack-oquin