Exemplo n.º 1
0
def is_safe_to_upgrade():
    """
    Reports whether it's currently safe to upgrade the rlbot package, e.g. via pip. An example of when it's
    unsafe is when one of the dlls is in use, which can cause the upgrade to fail half way through.
    See https://github.com/RLBot/RLBot/issues/130
    """
    return not contains_locked_file(get_rlbot_directory())
Exemplo n.º 2
0
 def main():
     """
     Start the GUI
     :return:
     """
     app = QApplication(sys.argv)
     rlbot_icon = QtGui.QIcon(os.path.join(get_rlbot_directory(), 'img', 'rlbot_icon.png'))
     app.setWindowIcon(rlbot_icon)
     window = RLBotQTGui()
     window.show()
     app.exec_()