File tree 1 file changed +2
-1
lines changed
arduino-core/src/processing/app/windows
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 28
28
import org .apache .commons .exec .DefaultExecutor ;
29
29
import org .apache .commons .exec .Executor ;
30
30
import org .apache .commons .exec .PumpStreamHandler ;
31
+ import processing .app .BaseNoGui ;
31
32
import processing .app .debug .TargetPackage ;
32
33
import processing .app .legacy .PApplet ;
33
34
import processing .app .legacy .PConstants ;
@@ -194,7 +195,7 @@ public String preListAllCandidateDevices() {
194
195
executor .setStreamHandler (new PumpStreamHandler (baos , null ));
195
196
196
197
try {
197
- String listComPorts = new File ( System . getProperty ( "user.dir" ), "hardware/tools/listComPorts.exe" ).getCanonicalPath ();
198
+ String listComPorts = BaseNoGui . getContentFile ( "hardware/tools/listComPorts.exe" ).getCanonicalPath ();
198
199
199
200
CommandLine toDevicePath = CommandLine .parse (listComPorts );
200
201
executor .execute (toDevicePath );
You can’t perform that action at this time.
0 commit comments