Rename RunCommand to CommandRunner
authorFred <fmcell@gmail.com>
Mon, 4 Mar 2013 04:03:38 +0000 (12:03 +0800)
committerFred <fmcell@gmail.com>
Mon, 4 Mar 2013 04:03:38 +0000 (12:03 +0800)
lib/command.py
mdk.py

index 391d21d..1808c8c 100644 (file)
@@ -80,7 +80,7 @@ class Command(object):
         return self.__Wp
 
 
-class RunCommand(object):
+class CommandRunner(object):
     """Executes a command"""
 
     def __init__(self, command):
diff --git a/mdk.py b/mdk.py
index f10399e..0a2f54f 100755 (executable)
--- a/mdk.py
+++ b/mdk.py
@@ -26,7 +26,7 @@ import sys
 import argparse
 import os
 import re
-from lib.command import RunCommand
+from lib.command import CommandRunner
 from lib.commands import *
 from lib.config import Conf
 from lib.tools import process
@@ -82,5 +82,5 @@ if alias != None:
 classname = '%sCommand' % (cmd.capitalize())
 cls = globals().get(classname)
 Cmd = cls(C)
-Runner = RunCommand(Cmd)
+Runner = CommandRunner(Cmd)
 Runner.run(args, prog='%s %s' % (os.path.basename(sys.argv[0]), cmd))