Where can I find Enigma2 CVS?
Is dreamboxupdate.com:/cvs\enigma2 is the correct place?
What python editor does people normally use?
rgds.
Where can I find Enigma2 CVS?
Is dreamboxupdate.com:/cvs\enigma2 is the correct place?
What python editor does people normally use?
rgds.
Zitat
What python editor does people normally use?
I'm using eclipse + pydev plugin.
Thanks,
Ok, now I installed eclipse and pydev. I made a pydev project and added my simple plugin.py to it.
I'm getting the following error:
Traceback (most recent call last):
File "F:\My Documents\Downloads\Dreambox Utilities\Own Packages\enigma2\lib\python\Plugins\DemoPlugins\OurSmallTest\plugin.py", line 1, in ?
from Plugins.Plugin import PluginDescriptor
File "F:\My Documents\Downloads\Dreambox Utilities\Own Packages\enigma2\lib\python\Plugins\Plugin.py", line 1, in ?
from enigma import loadPNG
ImportError: No module named enigma
My plugin.py is very simple and looks as following:
from Plugins.Plugin import PluginDescriptor
def main(session, **kwargs):
print "Hello world!"
def Plugins(**kwargs):
return PluginDescriptor(
name="Our Small Test",
description="plugin to test some capabilities",
where = PluginDescriptor.WHERE_PLUGINMENU,
fnc=main)
Alles anzeigen
So it seems that enigma is missing from my path, but I could not find this file! Help please.
Run the plugin on the box, not on the pc, unless you got enigma2 running on it (which is rather unlinkely ;))
Ok, but I though that I have to compile the plugin first! Should I not? just put the .py file? Where should I start the plugin from then? telnet to box? or from menu?
No, python is an interpreted language, meaning it does not need to be compiled. Create a Folder in /usr/lib/enigma2/python/Plugins/Extensions naming it anyway you like (DemoPlugin or whatever, copy the py file into that folder, and create an empty file named __init__.py in that folder (IT HAS TO BE THAT NAME EXACTLY! Else enigma2 won't recognize the folder as a plugin folder). Then restart enigma2 and the plugin will appear in the plugin menu (as defined by where = PluginDescriptor.WHERE_PLUGINMENU)
Thanks a lot.