Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
Scott
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Scott Sun
Scott
Commits
9c93db4b
Commit
9c93db4b
authored
5 years ago
by
Scott Sun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
s
parent
bba21fbf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
20 deletions
+11
-20
scott_test.js
test/scott_test.js
+11
-20
No files found.
test/scott_test.js
View file @
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
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment