Commit cf08b85d authored by Scott Sun's avatar Scott Sun

Merge branch 'master' of http://gitlab.topibd.net/scott.sun/scott

parents 56eabba9 9c93db4b
......@@ -57,14 +57,17 @@ if ($.hasOwnProperty('script_parameter')){
try {
var job = Job.toLowerCase()
console.log("job---------:"+job);
console.log("GEN_TYPE---------:"+GEN.GEN_TYPE);
console.log("GENESIS_TMP---------:"+GEN.GENESIS_TMP);
console.log("GENESIS_DIR---------:"+GEN.GENESIS_DIR);
console.log("GENESIS_EDIR---------:"+GEN.GENESIS_EDIR);
var jobpath = GEN.getJobPath({job:job})
console.log("_____jobpath______:"+_.toString(jobpath));
console.log("______path:"+GEN.dbutil('path jobs ' + jobname));
var matrix = GEN.getMatrix({job:job})
var sm = Object.keys(matrix).filter(function(v){
var item = matrix[v]
return item.context=="board" && item.layer_type=="solder_mask"
})
GEN.openStep({job:job,name:"cad"})
sm.forEach(function(layer){
GEN.PAUSE(layer)
var info = GEN.copperArea({layer:layer})
GEN.PAUSE(_.toString(info))
})
QDfm.updateRow({
table: "pdm_aimdfm_task",
......@@ -95,15 +98,3 @@ catch (e) {
}
function mkPath(path,list) {
console.log("--path:" + path);
if(list.length){
var newPath = path + '/' + list.shift()
if(!fs.dirExists(newPath)){
fs.mkdir(newPath)
console.log("--mkdir:" + newPath);
}
return mkPath(newPath,list)
} else {return path}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment