summaryrefslogtreecommitdiff
path: root/Makefile.examples
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2018-03-28 19:00:22 +0200
committerThomas Haller <thaller@redhat.com>2018-04-04 14:02:13 +0200
commitd14b9b821529e5efebdb3d99c022b16803866d52 (patch)
treeb705bc94480c31fcea8d02bd69802a645801566b /Makefile.examples
parentf67303221bdc8098cb3b6203ec777b294e412971 (diff)
examples: add python utils for examples
We need common operations from the python scripts. For example, to print the boot-time. Move such utils to a separate nmex.py file ("ex" for example). This file should contain helper functions that are pure python (or, if the have requirements, load them only on demand, so that examples that need those have additional dependencies). It should also be simple to extract individual helpers from nmex, so that the user can take an example, merge parts of nmex.py in, and modify it to his needs.
Diffstat (limited to 'Makefile.examples')
-rw-r--r--Makefile.examples2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile.examples b/Makefile.examples
index d49db6ce86..d5433395c3 100644
--- a/Makefile.examples
+++ b/Makefile.examples
@@ -150,6 +150,8 @@ EXTRA_DIST += \
examples/nm-conf.d/30-anon.conf \
examples/nm-conf.d/31-mac-addr-change.conf \
\
+ examples/python/nmex.py \
+ \
examples/python/dbus/nm-state.py \
examples/python/dbus/add-connection.py \
examples/python/dbus/add-connection-compat.py \