|
|
|
|
80
|
module = imp.load_module(self.name, fh, modpath,
|
80
|
module = imp.load_module(self.name, fh, modpath,
|
81
|
(".py", "r", imp.PY_SOURCE))
|
81
|
(".py", "r", imp.PY_SOURCE))
|
82
|
except IOError:
|
82
|
except IOError:
|
83
|
- raise SardinePluginError(self.name)
|
|
|
|
|
83
|
+ raise SardinePluginError("no such plugin: %s" % self.name)
|
84
|
self.plugin = module.Plugin(self.plugindata)
|
84
|
self.plugin = module.Plugin(self.plugindata)
|
85
|
|
85
|
|
86
|
def _format_output(self, raw):
|
86
|
def _format_output(self, raw):
|
|
|
|
|
103
|
try:
|
103
|
try:
|
104
|
self.subcommand = Subcommand(cmdargs, self.pluginpath)
|
104
|
self.subcommand = Subcommand(cmdargs, self.pluginpath)
|
105
|
except SardinePluginError as e:
|
105
|
except SardinePluginError as e:
|
106
|
- self.die("no such plugin: %s" % e)
|
|
|
|
|
106
|
+ self.die(e)
|
107
|
|
107
|
|
108
|
def _set_pluginpath(self):
|
108
|
def _set_pluginpath(self):
|
109
|
mypath = os.path.dirname(os.path.realpath(sys.argv[0]))
|
109
|
mypath = os.path.dirname(os.path.realpath(sys.argv[0]))
|