Skip to content

Commit d4d23a3

Browse files
committed
Comment STUBS_DIR hackiness for now
1 parent f92f755 commit d4d23a3

File tree

1 file changed

+12
-19
lines changed

1 file changed

+12
-19
lines changed

RTK_Firmware_Uploader/au_act_esptool.py

Lines changed: 12 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -7,25 +7,18 @@
77

88
import sys
99

10-
if (system() == "Darwin") and hasattr(sys, '_MEIPASS'): # Fix for MacOS pyinstaller windowed executable
11-
12-
head_tail = os.path.split(os.path.dirname(__file__))
13-
base_path = os.path.abspath(head_tail[0])
14-
STUBS_DIR = os.path.join(base_path, "esptool", "targets", "stub_flasher")
15-
print (STUBS_DIR)
16-
# Python hackiness: change the path to stub json files in the context of the esptool
17-
# module, so it edits the esptool's global variables
18-
result = ''
19-
try:
20-
result = str(exec(
21-
"loader.STUBS_DIR = '{}'".format(STUBS_DIR),
22-
esptool.__dict__,
23-
esptool.__dict__,
24-
))
25-
except:
26-
print ("The exec failed")
27-
pass
28-
print (result)
10+
# if (system() == "Darwin") and hasattr(sys, '_MEIPASS'): # Fix for MacOS pyinstaller windowed executable
11+
12+
# head_tail = os.path.split(os.path.dirname(__file__))
13+
# base_path = os.path.abspath(head_tail[0])
14+
# STUBS_DIR = os.path.join(base_path, "esptool", "targets", "stub_flasher")
15+
# # Python hackiness: change the path to stub json files in the context of the esptool
16+
# # module, so it edits the esptool's global variables
17+
# exec(
18+
# "loader.STUBS_DIR = '{}'".format(STUBS_DIR),
19+
# esptool.__dict__,
20+
# esptool.__dict__,
21+
# )
2922

3023
#--------------------------------------------------------------------------------------
3124
# action testing

0 commit comments

Comments
 (0)