Pyinstaller fügen zusätzliche Dateien hinzuPython

Python-Programme
Anonymous
 Pyinstaller fügen zusätzliche Dateien hinzu

Post by Anonymous »

So fügen Sie während einer Kompilierung zusätzliche Dateien zum Dist -Folder hinzu ((

Code: Select all

python -m PyInstaller tlum.spec
)?

Code: Select all

a = Analysis(
['..\\src\\main.py'],
pathex=[],
binaries=[],
datas=[
("..\\assets\\data\\dictionary.txt","assets\\data"),
("..\\assets\\images\\error.png","assets\\images"),
("..\\assets\\images\\success.png","assets\\images"),
("..\\src\\component\\harmonica_widget.py","component"),
("..\\src\\template\\game_harmonica.kv","template"),
("..\\src\\template\\game_parrot.kv","template"),
("..\\src\\template\\game_phonetics.kv","template"),
("..\\src\\template\\main.kv","template"),
],
hiddenimports=[],
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=[],
noarchive=False,
optimize=0,
)
< /code>
Fehler bei einem Fehler: < /p>
Traceback (most recent call last):
File "main.py", line 71, in 
File "kivy\app.py", line 955, in run
File "kivy\app.py", line 925, in _run_prepare
File "main.py", line 32, in build
File "kivy\lang\builder.py", line 308, in load_file
FileNotFoundError: [Errno 2] No such file or directory: 'template/main.kv'
Nur wenn ich den Ordner Dist erforderliche Ordner/Dateien hinzufüge, funktioniert alles. https://github.com/lyskouski/app-langua ... /tlum.spec

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post