return True
def __init__(self, config = None):
- if config is None: config = Config()
+ if not config: config = Config()
self.name = self.__class__.__name__
self.path=os.path.abspath(os.path.dirname(sys.argv[0]))
self.config = config
module = self.__class__.__module__.replace(".", os.sep)
file = self.path + os.sep + module + ".py"
- try:
- result = self.call(*args, **kwds)
- except NameError:
- command = "%s %s" % (file, " ".join(args))
- utils.header(command)
- (stdout, stderr) = utils.popen(command)
- print "".join(stdout)
- result = None
+ result = self.call(*args, **kwds)
return result