Esempio n. 1
0
def main():
    Paths.logRelevantEnvironmentalPaths()
    getCompilerUploader()
    libUpdater = getLibUpdater()
    libUpdater.downloadLibsIfNecessary()

    options = handleSystemArguments()
    server = initializeServerAndCommunicationProtocol(options)

    # serialThread = initSerialMonitor()

    def closeSigHandler(signal, frame):
        server.server_close()
        os._exit(1)

    signal.signal(signal.SIGINT, closeSigHandler)

    log.debug("listening...")
    server.serve_forever()
Esempio n. 2
0
 def setLibVersion(self, version):
     libUpdater = getLibUpdater()
     if libUpdater.getBitbloqLibsVersion() != version:
         libUpdater.setBitbloqLibsVersion(version)
         libUpdater.downloadLibs()
     return True