Skip to content

Commit

Permalink
Added a PyInstaller hook for missing numpy file
Browse files Browse the repository at this point in the history
  • Loading branch information
gentlegiantJGC committed Aug 6, 2024
1 parent 0b0bf57 commit 1e3c233
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions amulet_map_editor/__pyinstaller/hook-numpy.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import os
import glob

import numpy

numpy_lib_path = numpy.__path__[0] + ".libs"

datas = [
(dll_path, "numpy.libs")
for dll_path in glob.glob(os.path.join(glob.escape(numpy_lib_path), "*.dll"))
]

0 comments on commit 1e3c233

Please sign in to comment.