Skip to content

Commit

Permalink
Fix pyinstaller hidden imports for onefile
Browse files Browse the repository at this point in the history
  • Loading branch information
cdgriffith committed Jun 16, 2024
1 parent 8eac73b commit 67119e7
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions FastFlix_Windows_OneFile.spec
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ for root, dirs, files in os.walk('fastflix'):
all_fastflix_files.append((os.path.join(root,file), root))

all_imports = collect_submodules('pydantic') + ['dataclasses', 'colorsys', 'typing_extensions', 'box']

with open("pyproject.toml") as f:
for line in toml.load(f)["project"]["dependencies"]:
package = line.split("[")[0].split("=")[0].split(">")[0].split("<")[0].replace('"', '').replace("'",'').rstrip("~").strip()
Expand All @@ -26,12 +27,6 @@ all_imports.remove("python-box")
all_imports.append("box")
all_imports.append("iso639")

with open("pyproject.toml") as f:
for line in toml.load(f)["project"]["dependencies"]:
package = line.split("[")[0].split("=")[0].split(">")[0].split("<")[0].replace('"', '').replace("'",'').rstrip("~").strip()
if package not in ("pyinstaller"):
all_imports.append(package)

portable_file = "fastflix\\portable.py"
with open(portable_file, "w") as portable:
portable.write(" ")
Expand Down

0 comments on commit 67119e7

Please sign in to comment.