Skip to content

Commit

Permalink
Merge pull request #228 from Amulet-Team/fix-leveldb-hidden-import
Browse files Browse the repository at this point in the history
Fixed hidden import error
  • Loading branch information
gentlegiantJGC committed Oct 29, 2022
2 parents 91e8697 + 7c178c8 commit 4ee45f2
Showing 1 changed file with 2 additions and 19 deletions.
21 changes: 2 additions & 19 deletions amulet/__pyinstaller/hook-amulet.py
Original file line number Diff line number Diff line change
@@ -1,21 +1,4 @@
import pkgutil
from PyInstaller.utils.hooks import collect_data_files

import amulet
from amulet import level
from amulet import operations

AMULET_PATH = amulet.__path__[0]

hiddenimports = (
[name for _, name, _ in pkgutil.walk_packages(level.__path__, level.__name__ + ".")]
+ [
name
for _, name, _ in pkgutil.walk_packages(
operations.__path__, operations.__name__ + "."
)
]
+ ["amulet.api.structure"]
)
from PyInstaller.utils.hooks import collect_data_files, collect_submodules

hiddenimports = collect_submodules("amulet")
datas = collect_data_files("amulet")

0 comments on commit 4ee45f2

Please sign in to comment.