def run_script(file_name, script_name): ret = eagle_util_funcs.run_eagle([ file_name, '-S' + script_name, ]) if ret != 0: print("Eagle returned error!") sys.exit(ret)
def run_script(file_name, script_name): ret = eagle_util_funcs.run_eagle([ file_name, '-S' + script_name, ] ) if ret != 0: print("Eagle returned error!") sys.exit(ret)
def generate_drill(brdFile, outFile, layers): ret = eagle_util_funcs.run_eagle([ '-X', # Run the command line CAM processor '-N', # No output messages '-dEXCELLON', # Output in gerber format '-o' + outFile, # Output path brdFile, # Input board ] + layers # Layers to process ) if ret != 0: print("Eagle returned error!") sys.exit(ret)
def run_eagle_bom_ulp(infile, outfile, ulpfile): eagle_util_funcs.run_eagle([ '-C', 'run %s %s; quit' % (ulpfile, outfile), infile, ])