From 91890bc31f2752aa8ff55372aa69a6723a0c09b5 Mon Sep 17 00:00:00 2001 From: Stefan Pluecken Date: Tue, 10 Jan 2006 15:39:00 +0000 Subject: move the plugins into their own directory and every plugin has a main python file called plugin.py in his directory for example the update plugin now resides in /usr/lib/enigma2/python/Plugins/update when you add a plugin, don't forget to put an empty __init__.py file into the directory, otherwise python doesn't recognize the directory as module --- lib/python/Tools/Directories.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/python/Tools') diff --git a/lib/python/Tools/Directories.py b/lib/python/Tools/Directories.py index 37ff1aa4..3736b7b5 100644 --- a/lib/python/Tools/Directories.py +++ b/lib/python/Tools/Directories.py @@ -9,6 +9,7 @@ SCOPE_USERETC = 5 SCOPE_CONFIG = 6 SCOPE_LANGUAGE = 7 SCOPE_HDD = 8 +SCOPE_PLUGINS = 9 PATH_CREATE = 0 PATH_DONTCREATE = 1 @@ -18,6 +19,7 @@ defaultPaths = { SCOPE_SYSETC: ("/etc/", PATH_DONTCREATE), SCOPE_FONTS: ("/usr/share/fonts/", PATH_DONTCREATE), SCOPE_CONFIG: ("/etc/enigma2/", PATH_CREATE), + SCOPE_PLUGINS: ("/usr/lib/enigma2/python/Plugins/", PATH_CREATE), SCOPE_LANGUAGE: ("/usr/share/enigma2/po/", PATH_CREATE), -- cgit v1.2.3