/usr/share/k3d/scripts/describe_plugins.py is in k3d-data 0.8.0.3-3build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | #python
import k3d
factories = k3d.plugin.factory.lookup()
application_plugins = []
document_plugins = []
for factory in factories :
if factory.is_application_plugin():
application_plugins.append(factory.name())
if factory.is_document_plugin():
document_plugins.append(factory.name())
application_plugins.sort()
document_plugins.sort()
print "\nApplication Plugins:"
for plugin in application_plugins:
print "\t" + plugin
print "\n\t" + "Total: " + str(len(application_plugins))
print "\nDocument Plugins:"
for plugin in document_plugins:
print "\t" + plugin
print "\n\t" + "Total: " + str(len(document_plugins))
import sys
sys.stdout.flush()
k3d.ui().message("Output sent to console")
|