コード例 #1
0
def run_in_builtin_terminal_maybe(cmd, root, **kwargs):
    if root is None:
        code = run_in_builtin_terminal(cmd, **kwargs)
        return code
    else:
        run_in_system_terminal(cmd, root=root)
        return None
コード例 #2
0
def run_in_builtin_terminal_maybe(cmd, root, env={}, **kwargs):
    if root is None:
        code = run_in_builtin_terminal(cmd, env, **kwargs)
        return code
    else:
        run_in_system_terminal(cmd, env, root=root)
        return None