[videomode] fix dependency
[vuplus_dvbapp] / lib / python / Plugins / newplugin.py
old mode 100644 (file)
new mode 100755 (executable)
index c84f060..32c7269
@@ -101,8 +101,8 @@ for where in targetlist:
        importlist.append(where[0])
 
 file.write("""from Screens.Screen import Screen
-from Plugins.Plugin import PluginDescriptor, %s
-""" % ', '.join(importlist))
+from Plugins.Plugin import PluginDescriptor
+""")
 
 mainlist = []
 for count in range(len(targetlist)):
@@ -134,4 +134,13 @@ def Plugins(**kwargs):
        return %s
        """ % descriptorlist)
 
-file.close()
\ No newline at end of file
+file.close()
+
+makefile = open(pluginpath + "/Makefile.am", "w")
+makefile.write("""installdir = $(pkglibdir)/python/Plugins/%s/%s
+
+install_PYTHON = \\
+       __init__.py \\
+       plugin.py
+""" % (category, internalname))
+makefile.close()