break instead of continue

This commit is contained in:
Andreas Preikschat 2011-12-07 21:41:19 +01:00
parent 32f2dcac59
commit 66c183a6b8

View File

@ -90,7 +90,7 @@ class PluginManager(object):
thisdepth = len(path.split(os.sep)) thisdepth = len(path.split(os.sep))
if thisdepth - startdepth > 2: if thisdepth - startdepth > 2:
# skip anything lower down # skip anything lower down
continue break
modulename = os.path.splitext(path)[0] modulename = os.path.splitext(path)[0]
prefix = os.path.commonprefix([self.basepath, path]) prefix = os.path.commonprefix([self.basepath, path])
# hack off the plugin base path # hack off the plugin base path