Skip to content

Commit a650b8f

Browse files
Fix python3 search, add ntoe about serial monitor
1 parent 97c1b1a commit a650b8f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed
34 Bytes
Binary file not shown.
5 Bytes
Binary file not shown.

src/PicoLittleFS.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,12 @@ private void sysExec(final String[] arguments){
9999
public void run() {
100100
try {
101101
if(listenOnProcess(arguments) != 0){
102-
editor.statusError("LittleFS Upload failed!");
102+
editor.statusError("LittleFS Upload failed! Did you close the Serial Monitor?");
103103
} else {
104104
editor.statusNotice("LittleFS Image Uploaded");
105105
}
106106
} catch (Exception e){
107-
editor.statusError("LittleFS Upload failed!");
107+
editor.statusError("LittleFS Upload failed! Did you close the Serial Monitor?");
108108
}
109109
}
110110
};
@@ -220,7 +220,7 @@ private void createAndUpload(){
220220
uploadCmd = uploadPyFile.getAbsolutePath();
221221
}
222222
// Find python.exe if present, don't fail if not found for backwards compat
223-
String[] paths = { platform.getFolder()+"/tools", platform.getFolder()+"/tools/python3", PreferencesData.get("runtime.tools.python3.path") };
223+
String[] paths = { platform.getFolder()+"/system", platform.getFolder()+"/system/python3", PreferencesData.get("runtime.tools.pqt-python3.path") };
224224
for (String s: paths) {
225225
File toolPyFile = new File(s, pythonCmd);
226226
if (toolPyFile.exists() && toolPyFile.isFile() && toolPyFile.canExecute()) {

0 commit comments

Comments
 (0)