def generateFiles(install=False): # Creates new menu api_boards = Paths.getTemplateMenuPath('platformio_boards.json', user_path=True) # create main files PlatformioCLI().saveAPIBoards(install=install) Menu().createMainMenu() Tools.createCompletions() Tools.createSyntaxFile() Menu().createLibraryImportMenu() Menu().createLibraryExamplesMenu() # Run serial port listener Serial = SerialListener(func=Menu().createSerialPortsMenu) Serial.start()
def plugin_loaded(): protected = Preferences().get('protected') if(not protected): thread = threading.Thread(target=PioInstall().checkPio) thread.start() ThreadProgress(thread, _('processing'), _('done')) else: # creating files Tools.createCompletions() Tools.createSyntaxFile() Menu().createMainMenu() Menu().createLibraryImportMenu() Menu().createLibraryExamplesMenu() # Run serial port listener Serial_Lib = Serial.SerialListener(func=Menu().createSerialPortsMenu) Serial_Lib.start()
def plugin_loaded(): protected = Preferences().get('protected') if (not protected): thread = threading.Thread(target=PioInstall().checkPio) thread.start() ThreadProgress(thread, _('processing'), _('done')) else: # creating files Tools.createCompletions() Tools.createSyntaxFile() Menu().createMainMenu() Menu().createLibraryImportMenu() Menu().createLibraryExamplesMenu() # Run serial port listener Serial_Lib = Serial.SerialListener(func=Menu().createSerialPortsMenu) Serial_Lib.start()