Skip to content

Commit

Permalink
Make gclib import/build less janky
Browse files Browse the repository at this point in the history
  • Loading branch information
LagoLunatic committed Nov 10, 2023
1 parent 23eed79 commit 892f504
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 18 deletions.
19 changes: 2 additions & 17 deletions gcft.spec
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,6 @@ def build_datas_recursive(paths):

return datas

import sys
def get_hidden_imports():
import_modules = []

sys.path.insert(0, "./gclib")
import gclib
for module_name in gclib.__all__:
import_modules.append(f"gclib.{module_name}")
for module_name in gclib.j3d_chunks.__all__:
import_modules.append(f"gclib.j3d_chunks.{module_name}")
for module_name in gclib.jpa_chunks.__all__:
import_modules.append(f"gclib.jpa_chunks.{module_name}")

return import_modules

import platform
import glob
def get_binaries():
Expand All @@ -54,13 +39,13 @@ def get_binaries():


a = Analysis(['gcft.py'],
pathex=[],
pathex=["./gclib", "./gclib/gclib"],
binaries=get_binaries(),
datas=build_datas_recursive([
'assets/**/*.*',
'version.txt',
]),
hiddenimports=get_hidden_imports(),
hiddenimports=[],
hookspath=[],
runtime_hooks=[],
excludes=[],
Expand Down
2 changes: 1 addition & 1 deletion gclib

0 comments on commit 892f504

Please sign in to comment.