This repository was archived by the owner on Feb 21, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 112
112
console . log ( "User lib" ) ;
113
113
paths . push ( sketchbook + path . sep + "libraries" + path . sep + libname + path . sep + "src" ) ;
114
114
}
115
+ //<editor-fold desc="test new path for lib">
116
+ else if ( fs . existsSync ( plat . root + path . sep + "hardware" + path . sep + "arduino" + path . sep + arch + path . sep + "libraries" + path . sep + libname ) )
117
+ {
118
+ console . log ( "User lib" ) ;
119
+ paths . push ( plat . root + path . sep + "hardware" + path . sep + "arduino" + path . sep + arch + path . sep + "libraries" + path . sep + libname ) ;
120
+ if ( fs . existsSync ( plat . root + path . sep + "hardware" + path . sep + "arduino" + path . sep + arch + path . sep + "libraries" + path . sep + libname + path . sep + "src" ) )
121
+ paths . push ( ( plat . root + path . sep + "hardware" + path . sep + "arduino" + path . sep + arch + path . sep + "libraries" + path . sep + libname + path . sep + "src" ) )
122
+ if ( fs . existsSync ( plat . root + path . sep + "hardware" + path . sep + "arduino" + path . sep + arch + path . sep + "libraries" + path . sep + libname + path . sep + "utility" ) )
123
+ paths . push ( ( plat . root + path . sep + "hardware" + path . sep + "arduino" + path . sep + arch + path . sep + "libraries" + path . sep + libname + path . sep + "utility" ) )
124
+ }
125
+ //</editor-fold>
115
126
else
116
- console . log ( "Library " + libname + "not exist" )
127
+ console . log ( "Library " + libname + " not exist" )
117
128
}
118
129
} ) ;
119
130
if ( cb ) cb ( ) ;
You can’t perform that action at this time.
0 commit comments