def config_bts():
    patch_robot()
    send_variable("CFG_MMT_Path", search_file('MMT.exe'))
    send_variable("CFG_DSPExplorer_Dir", search_file('DSPExplorer_GUI.exe'))
    send_variable("CFG_BTSLogTool_Path", search_file('BTSlog2.exe'))
    send_variable("CFG_MMT_CaptureInterface", str(get_mmt_port()))
    cmds = ['cd Users\upl1-tester', 'echo succeed > callback_succeed.txt']
    do_telnet(Host, cmds)
    # so that rdp.exe can move on to commit
    time.sleep(60)
def config_bts():
    map(lambda x: install_by_pip(x), ['pycrypto', 'robotframework','robotframework-ride'])
    send_variable("CFG_MMT_Path", search_file('MMT.exe'))
    send_variable("CFG_DSPExplorer_Dir", search_file('DSPExplorer_GUI.exe'))
    send_variable("CFG_BTSLogTool_Path", search_file('BTSlog2.exe'))
    send_variable("CFG_MMT_CaptureInterface", str(get_mmt_port()))
    cmds = ['cd Users\upl1-tester', 'echo succeed > callback_succeed.txt']
    do_telnet(Host, cmds)
    # so that rdp.exe can move on to commit
    time.sleep(60)