def main(): BOM_FILENAME, CAD_FILENAME, PLX_FILENAME = fileNamer(); HEADER, BOARD_ORIGIN, BOARD_WIDTH = varInitializer() fiducials, components = CSVReader.cadFetch(BOARD_ORIGIN, CAD_FILENAME) devices = CSVReader.bomFetch(components, BOM_FILENAME) plxGenerator(HEADER, BOARD_WIDTH, fiducials, devices, PLX_FILENAME) raw_input('.plx File created! ')
def main(): BOM_FILENAME, CAD_FILENAME, PLX_FILENAME = fileNamer() HEADER, BOARD_ORIGIN, BOARD_WIDTH = varInitializer() fiducials, components = CSVReader.cadFetch(BOARD_ORIGIN, CAD_FILENAME) devices = CSVReader.bomFetch(components, BOM_FILENAME) plxGenerator(HEADER, BOARD_WIDTH, fiducials, devices, PLX_FILENAME) raw_input(".plx File created! ")
def main(): while True: try: BOM_FILENAME, CAD_FILENAME, PLX_FILENAME = fileNamer(); HEADER, BOARD_ORIGIN, BOARD_WIDTH = varInitializer() fiducials, components = CSVReader.cadFetch(BOARD_ORIGIN, CAD_FILENAME) devices = CSVReader.bomFetch(components, BOM_FILENAME) plxGenerator(HEADER, BOARD_WIDTH, fiducials, devices, PLX_FILENAME) break except IOError: print '\nERROR 002. Archivo no encontrado. La direccion puede '+\ 'ser incorrecta\no la extension diferente a .csv\n' raw_input('\nEl archivo .plx ha sido creado exitosamente! ASEGURESE DE'+\ ' QUE EL NOMBRE\nDEL ARCHIVO SEA IGUAL AL DEL BOM')
def main(): while True: try: BOM_FILENAME, CAD_FILENAME, PLX_FILENAME = fileNamer() HEADER, BOARD_ORIGIN, BOARD_WIDTH = varInitializer() fiducials, components = CSVReader.cadFetch(BOARD_ORIGIN, CAD_FILENAME) devices = CSVReader.bomFetch(components, BOM_FILENAME) plxGenerator(HEADER, BOARD_WIDTH, fiducials, devices, PLX_FILENAME) break except IOError: print '\nERROR 002. Archivo no encontrado. La direccion puede '+\ 'ser incorrecta\no la extension diferente a .csv\n' raw_input('\nEl archivo .plx ha sido creado exitosamente! ASEGURESE DE'+\ ' QUE EL NOMBRE\nDEL ARCHIVO SEA IGUAL AL DEL BOM')