Tanja Striepling wrote:
I want to import something from a plugin into a helper script.
The helper is in freevo/src/helper and the plugin in /freevo/src/plugins.

How do I have to do that?

I tried this (in the helper script):

First try:
"import name_of_plugin_file" gives "ImportError: No module named name_of_plugin_file"


Second try:
"import plugins.name_of_plugin_file" gives the complete output of the helper named "plugins" and then again
"ImportError: No module named name_of_plugin_file"

try this, in your local_conf.py:

plugin_x = plugin.activate('name_of_plugin')

and in the helper script:

plugin.init_special_plugin(config.plugin_x)

That should work in 1.5.x, and is how the recordserver uses its plugins. The CVS trunk/2.0 has different means to do this.

-Rob


------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Freevo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/freevo-devel

Reply via email to