Skip to content

Commit

Permalink
Fixed missing debug option in exe build.
Browse files Browse the repository at this point in the history
  • Loading branch information
pilotso11 committed Feb 19, 2022
1 parent 6ffd05b commit 5b76f3a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
1 change: 1 addition & 0 deletions build.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pyinstaller.exe fcmacros.spec
9 changes: 4 additions & 5 deletions fcmacros.py
Original file line number Diff line number Diff line change
Expand Up @@ -461,11 +461,10 @@ def on_debug_change(*args):
status.grid(column=0, row=row, columnspan=5, sticky="w")
row += 1

if not BUNDLED:
ttk.Label(frame, text="Debug Log?").grid(column=0, row=row, sticky="e")
ttk.Checkbutton(frame, variable=DEBUG).grid(column=1, row=row, sticky="w")
else:
ttk.Label(frame, text="Version " + VERSION).grid(column=0, row=row, sticky="e")
ttk.Label(frame, text="Debug Log?").grid(column=0, row=row, sticky="e")
ttk.Checkbutton(frame, variable=DEBUG).grid(column=1, row=row, sticky="w")
row += 1
ttk.Label(frame, text="Version " + VERSION).grid(column=0, row=row, sticky="w")

auto_jump_label = ttk.Label(frame, text="")
auto_jump_label.grid(column=2, row=row, sticky="ew", columnspan=2)
Expand Down
2 changes: 1 addition & 1 deletion fcmacros.spec
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ a = Analysis(['fcmacros.py'],
pathex=[],
binaries=[],
datas=added_files,
hiddenimports=["PIL","cv2"],
hiddenimports=["PIL","cv2","pywin32"],
hookspath=[],
hooksconfig={},
runtime_hooks=[],
Expand Down

0 comments on commit 5b76f3a

Please sign in to comment.