Commit graph

7 commits

Author SHA1 Message Date
Dewey Garrett
bda8be8b56 gladevcp/__init__.py gtk3 decode subprocess output 2021-08-04 15:41:55 -07:00
Rene Hopf
dd95e08979 gtk3 wip 2021-05-23 00:51:14 +02:00
Rene Hopf
0249c34255 gscreen, glade: pyhon3 compatibility 2020-04-29 20:02:19 +02:00
Dewey Garrett
317a357aa6 gladevcp: continue if missing importlib
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>
2017-03-28 09:04:47 -07:00
Dewey Garrett
5c85135971 gladevcp: support auxiliary applications
(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>
2017-02-19 11:53:07 -07:00
Pavel Shramov
9e0393d602 gladevcp: Shorten import path
Use gladevcp as module name instead of gladevcp.hal_pythonplugin
2010-10-23 23:25:32 +04:00
Pavel Shramov
65b1d57c81 gladevcp: Fix glade plugin module path
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>
2010-10-21 10:55:29 +04:00