Plugin compiling help

  • Could someone please explain to me how to test a plugin on the dreambox. I am working on a python plugin but when i try and run it from the command line using


    python filename.py


    i get this error (or something like it)


    from Screens.Screen import Screen
    ImportError: No module named Screens.Screen


    Obviously it can't find any of the library files but i am tearing my hair out to try and work out how to make that work...


    Where should i put a plugin while testing it and how should i do it?


    p.

  • yes it is good question


    is another way?? or ONLY out it to /usr/.......and after enigma 2 start it will commpile it??



    How can we commpile our plugins on x86 machines???

  • You don't compile them at all. Python is an interpreted language, so it does not compile anything. The pyc files are simply bytecode. Enigma2 needs to see the plugins in classpath when it starts, so the only way is to restart enigma2, after putting the plugin to /usr/...

  • I have managed to get that side of it working now.


    Does anyone know how to actiivate the ZAP and timer functions from a plugin (where are the objects in enigma that do this and how do i call them)?


    Also, how do i go about converting a service name to a service reference?


    thanks,


    p.

    Einmal editiert, zuletzt von qwertyuiop ()