Skip to content

Commit

Permalink
Fix python3 search, add ntoe about serial monitor
Browse files Browse the repository at this point in the history
  • Loading branch information
earlephilhower committed Mar 31, 2021
1 parent 97c1b1a commit a650b8f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Binary file modified bin/com/efp3/pico/mklittlefs/PicoLittleFS$2.class
Binary file not shown.
Binary file modified bin/com/efp3/pico/mklittlefs/PicoLittleFS.class
Binary file not shown.
6 changes: 3 additions & 3 deletions src/PicoLittleFS.java
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,12 @@ private void sysExec(final String[] arguments){
public void run() {
try {
if(listenOnProcess(arguments) != 0){
editor.statusError("LittleFS Upload failed!");
editor.statusError("LittleFS Upload failed! Did you close the Serial Monitor?");
} else {
editor.statusNotice("LittleFS Image Uploaded");
}
} catch (Exception e){
editor.statusError("LittleFS Upload failed!");
editor.statusError("LittleFS Upload failed! Did you close the Serial Monitor?");
}
}
};
Expand Down Expand Up @@ -220,7 +220,7 @@ private void createAndUpload(){
uploadCmd = uploadPyFile.getAbsolutePath();
}
// Find python.exe if present, don't fail if not found for backwards compat
String[] paths = { platform.getFolder()+"/tools", platform.getFolder()+"/tools/python3", PreferencesData.get("runtime.tools.python3.path") };
String[] paths = { platform.getFolder()+"/system", platform.getFolder()+"/system/python3", PreferencesData.get("runtime.tools.pqt-python3.path") };
for (String s: paths) {
File toolPyFile = new File(s, pythonCmd);
if (toolPyFile.exists() && toolPyFile.isFile() && toolPyFile.canExecute()) {
Expand Down

0 comments on commit a650b8f

Please sign in to comment.