()
return 'RRCmd' in interpreter_globals and 'RRWhere' in interpreter_globals
Checks whether rr project is present (so someone launched e.g. `rr replay <some-recording>`)
Checks whether rr project is present (so someone launched e.g. `rr replay <some-recording>`)
Checks whether rr project is present ( so someone launched e . g . rr replay <some - recording > )
def _is_rr_present():
    """
    Checks whether rr project is present (so someone launched e.g. `rr replay <some-recording>`)
    """

    # this is ugly but I couldn't find a better way to do it
    # feel free to refactor it
    globals_list_literal_str = gdb.execute('python print(list(globals().keys()))', to_string=True)
    interpreter_globals = ast.literal_eval(globals_list_literal_str)

    return 'RRCmd' in interpreter_globals and 'RRWhere' in interpreter_globals
def _is_rr_present ( ) : # this is ugly but I couldn't find a better way to do it # feel free to refactor it globals_list_literal_str = gdb . execute ( 'python print(list(globals().keys()))' , to_string = True ) interpreter_globals = ast . literal_eval ( globals_list_literal_str ) return 'RRCmd' in interpreter_globals and 'RRWhere' in interpreter_globals