Beispiel #1
0
    def deactivate_system(self, package, system_file=None, verbose=False, try_count=5, wait_time=1.0):
        if system_file is None:
            system_file = package.default_system_filepath

        for i in range(0, try_count):
            if verbose: sys.stdout.write('# Activating RT-System (file=%s)\n' % system_file)
            from rtshell import rtstop
            if rtstop.main([system_file]) == 0:
                return 0
            time.sleep(wait_time)
        raise wasanbon.BuildSystemException()
Beispiel #2
0
def exe_rtstop(file=None):
    if not file:
        file = wasanbon.setting()['application']['system']
    return rtstop.main([file]) == 0
Beispiel #3
0
def exe_rtstop(file=None):
    if not file:
        file = wasanbon.setting()['application']['system']
    return rtstop.main([file]) == 0