Skip to content

Commit 3e1c82d

Browse files
committed
When a command is executed it is now executed from the arduino folder. This to solve issues with dll's in windows that do not et found.
1 parent fac81ef commit 3e1c82d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

it.baeyens.arduino.core/src/it/baeyens/arduino/tools/ExternalCommandLauncher.java

+2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
package it.baeyens.arduino.tools;
1717

1818
import it.baeyens.arduino.common.ArduinoConst;
19+
import it.baeyens.arduino.common.ArduinoInstancePreferences;
1920
import it.baeyens.arduino.common.Common;
2021

2122
import java.io.BufferedReader;
@@ -270,6 +271,7 @@ public void run() {
270271
fStdOut = new ArrayList<String>();
271272
fStdErr = new ArrayList<String>();
272273

274+
fProcessBuilder.directory(ArduinoInstancePreferences.getArduinoPath().toFile());
273275
process = fProcessBuilder.start();
274276

275277
Thread stdoutRunner = new Thread(new LogStreamRunner(process.getInputStream(), fStdOut, stdoutConsoleStream));

0 commit comments

Comments
 (0)