Skip to content

Commit

Permalink
Auto determine dump path.-v0.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
francis94c committed Jan 28, 2018
1 parent 6c9f946 commit 30a721f
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 12 deletions.
32 changes: 21 additions & 11 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 9 additions & 1 deletion esp-partition.py
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,14 @@ def choose_esp32_path(self):
json.dump(self.configs, open("init.json", "w"))
self.esp32_path_string_var.set(folder_string)
tkMessageBox.showinfo("Success", "Arduino ESP32 root path was successfully set.")
if "dump_path" not in self.configs:
self.configs["dump_path"] = folder_string + "/tools/partitions"
json.dump(self.configs, open("init.json", "w"))
self.dump_path_preference_string_var.set(folder_string + "/tools/partitions")
elif self.configs["dump_path"] == "":
self.configs["dump_path"] = folder_string + "/tools/partitions"
json.dump(self.configs, open("init.json", "w"))
self.dump_path_preference_string_var.set(folder_string + "/tools/partitions")
else:
tkMessageBox.showerror("ESP Gen Script Error", "The Espressif ESP32 Gen Script was not found.")

Expand Down Expand Up @@ -1225,7 +1233,7 @@ def about(self):
self.about_window.maxsize(width=250, height=250)
self.about_window.protocol("WM_DELETE_WINDOW", self.close_about_window)

about = "ESP32 Partition GUI / ESP32 Partition Manager\nv0.0.4"
about = "ESP32 Partition GUI / ESP32 Partition Manager\nv0.0.5"

Label(self.about_window, text=about, wraplength=250).pack(side=LEFT and TOP)
Button(self.about_window, text="Ok", command=self.close_about_window).pack(side=TOP)
Expand Down

0 comments on commit 30a721f

Please sign in to comment.