import importlib was added with merge of branch: aux_gladevcp_apps
but the old version of python included with Ubuntu-Lucid doesn't include
importlib
If importlib is not available, continue with message to stdout
noting that auxiliary gladevcp applications are not available
Signed-off-by: Dewey Garrett <dgarrett@panix.com>
(9) aux_gladevcp_apps: rebased to origin/2.7 at commit 22cf22a
1) For auxiliary applications installed from a deb
located in a known toplevel directory defined
by the substitution variable @LINUXCNC_AUX_GLADEVCP@.
(This location can be obtained using the linuxcnc_var
script which should always be in PATH for either a
RIP build or a deb install of LinuxCNC. Typically:
@LINUXNC_AUX_GLADEVCP@ = /usr/share/linuxcnc/aux_gladevcp)
2) For testing development of auxiliary applications, use
an exported environmental variable (GLADEVCP_EXTRAS)
to specify a colon (:) separated list of app directories
Example:
$ export GLADEVCP_EXTRAS=/home/test1:/home/test2
Typically one would include the export statement in a startup
script like ~/.profile or ~/.bashrc
Notes:
a) App filenames that are duplicated are rejected
b) Files found in directories specified with the environmental
variable GLADEVCP_EXTRAS supersede identically-named files within
subdirectories of the system directory specified by
LINUXNC_AUX_GLADEVCP (e.g., /usr/share/linuxcnc/aux_gladevcp).
This provision allows a developer to test an application
by exporting GLADEVCP_EXTRAS to specify a private application
directory without removing a system-installed application directory.
Messages inidicating rejected duplicates are printed to
stdout.
c) An exclude list is used to exclude problematic filenames
that may be used for other purposes
(curently: *setup*.py, *install*.py)
Signed-off-by: Dewey Garrett <dgarrett@panix.com>
Glade searches for python modules not only in usr/lib/glade3/modules
so it's they may exists in standard python lib. Change plugin name
to gladevcp.hal_pythonplugin so it may be installed inside gladevcp
module and don't pollute global namespace.
Signed-off-by: Pavel Shramov <shramov@mexmat.net>