diff options
-rw-r--r-- | scripts/lib/wic/plugin.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/lib/wic/plugin.py b/scripts/lib/wic/plugin.py index ccfdfcb934..151ff31671 100644 --- a/scripts/lib/wic/plugin.py +++ b/scripts/lib/wic/plugin.py | |||
@@ -42,7 +42,7 @@ class PluginMgr(object): | |||
42 | 42 | ||
43 | def __init__(self): | 43 | def __init__(self): |
44 | wic_path = os.path.dirname(__file__) | 44 | wic_path = os.path.dirname(__file__) |
45 | eos = wic_path.find('scripts') + len('scripts') | 45 | eos = wic_path.rfind('scripts') + len('scripts') |
46 | scripts_path = wic_path[:eos] | 46 | scripts_path = wic_path[:eos] |
47 | self.scripts_path = scripts_path | 47 | self.scripts_path = scripts_path |
48 | self.plugin_dir = scripts_path + PLUGIN_DIR | 48 | self.plugin_dir = scripts_path + PLUGIN_DIR |