Пример #1
0
 def do_reload(self, args):
     """
     usage: reload
     
     Load a fresh copy of all modules from disk.
     """
     
     Module.reload()
     
     print "Done.\n"
Пример #2
0
    def do_reload(self, args):
        """
        usage: reload
        
        Load a fresh copy of all modules from disk.
        """

        Module.reload()

        self.stdout.write("Done.\n\n")
Пример #3
0
 def do_reload(self, args):
     """
     usage: reload
     
     Load a fresh copy of all modules from disk.
     """
     
     Module.reload()
     
     self.stdout.write("Done.\n\n")
Пример #4
0
 def do_module(self, args):
     """
     module [COMMAND] (inside Mercury)
 
     Run the Mercury Module and Repository Manager.
 
     The Repository Manager handles Mercury modules and module repositories.
     """
     
     ModuleManager().run(shlex.split(args, comments=True))
     Module.reload()
Пример #5
0
    def do_module(self, args):
        """
        module [COMMAND] (inside Mercury)
    
        Run the Mercury Module and Repository Manager.
    
        The Repository Manager handles Mercury modules and module repositories.
        """

        ModuleManager().run(shlex.split(args, comments=True))
        Module.reload()