Skip to content

Commit

Permalink
[Released 4.0.1-preview]
Browse files Browse the repository at this point in the history
- [Tool] Update Ai Engine
- [Tool] Update fresh of unpackg
- [Tool] add addon exec
- [other] Bug Fix & Improvement

Signed-off-by: ColdWindScholar <[email protected]>
  • Loading branch information
ColdWindScholar committed Dec 7, 2024
1 parent fe38005 commit 0ab9c27
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bin/setting.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
theme = dark
path =
ai_engine = 0
version = 4.0.1-preview
version = 4.0.1
barlevel = 0.9
oobe = 0
language = English
Expand Down
2 changes: 2 additions & 0 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ def zip_folder(folder_path):
'splash.png'
])
elif os.name == 'nt':
mach_ = platform.machine()
platform.machine = lambda: 'x86' if platform.architecture()[0] == '32bit' and mach_ == 'AMD64' else mach_
if platform.machine() == 'x86':
dndplat = 'win-x86'
elif platform.machine() == 'AMD64':
Expand Down
5 changes: 2 additions & 3 deletions src/TkinterDnD.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,8 @@ def _require(tkroot):
tkdnd_platform_rep = "win-x86"
else:
raise RuntimeError('Plaform not supported.')

module_path = os.path.join(prog_path, 'bin', 'tkdnd', tkdnd_platform_rep)
tkroot.tk.call('lappend', 'auto_path', module_path)

tkroot.tk.call('lappend', 'auto_path', os.path.join(prog_path, 'bin', 'tkdnd', tkdnd_platform_rep))
TkdndVersion = tkroot.tk.call('package', 'require', 'tkdnd')
except tkinter.TclError:
raise RuntimeError('Unable to load tkdnd library.')
Expand Down
2 changes: 2 additions & 0 deletions src/tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -4493,6 +4493,8 @@ def init_verify():


def init():
if not os.path.exists(temp):
re_folder(temp, quiet=True)
if not os.path.exists(tool_log):
open(tool_log, 'w', encoding="utf-8", newline="\n").close()
logging.basicConfig(level=logging.DEBUG, format='%(levelname)s:%(asctime)s:%(filename)s:%(name)s:%(message)s',
Expand Down

0 comments on commit 0ab9c27

Please sign in to comment.