aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/msec/config.py1
-rwxr-xr-xsrc/msec/libmsec.py4
2 files changed, 3 insertions, 2 deletions
diff --git a/src/msec/config.py b/src/msec/config.py
index 0d9c292..e9a45e2 100644
--- a/src/msec/config.py
+++ b/src/msec/config.py
@@ -47,6 +47,7 @@ MODIFICATIONS_NOT_FOUND = _('No changes in system files')
# plugins
MAIN_LIB="libmsec"
+PLUGINS_DIR="/usr/share/msec/plugins"
# msec callbacks and valid values
# OPTION callback valid values
diff --git a/src/msec/libmsec.py b/src/msec/libmsec.py
index 04dbdc9..197b9ef 100755
--- a/src/msec/libmsec.py
+++ b/src/msec/libmsec.py
@@ -724,7 +724,7 @@ class ConfigFile:
# {{{ MSEC - main class
class MSEC:
"""Main msec class. Contains all functions and performs the actions"""
- def __init__(self, log, root='', plugins="plugins"):
+ def __init__(self, log, root='', plugins=PLUGINS_DIR):
"""Initializes config files and associations"""
# all config files
self.log = log
@@ -743,7 +743,7 @@ class MSEC:
# plugins
self.init_plugins(plugins)
- def init_plugins(self, path):
+ def init_plugins(self, path=PLUGINS_DIR):
"""Loads msec plugins from path"""
self.plugins = {}
plugin_files = glob.glob("%s/*.py" % path)