cx_Freeze를 사용할 때 이미지가 작동하지 않는 것 같습니다. 나는 다른 답변을보고 시도, here을 찾았지만 오류가 발생했습니다 : 여기cx_Freeze를 사용할 때 어떻게 이미지를 포함합니까?
을 robot_standing.fw.png \ 이미지 \ 파일/디렉토리라는 이름의 문서를 찾을 수없는 것은 내 setup.py 파일입니다
from cx_Freeze import setup,Executable
includefiles = ['Documents\images\robotStanding_sprite.fw.png', 'Documents\images\dirt_block.fw.png','Documents\images\grass_block.fw.png','Documents\images\spikes.fw.png','Documents\images\title_image.fw.png']
includes = []
excludes = []
packages = []
setup(
name = 'Robot Game',
version = '0.1',
description = 'null',
options = {'build_exe': {'excludes':excludes,'packages':packages,'include_files':includefiles}},
executables = [Executable('Robot Game.py')]
)
무엇 내가 틀렸어?
경로는 setup.py와 관련이 있어야합니다. –
@ThomasK 그들은 있습니다. Documents는 setup.py가 들어있는 폴더이지만 이미지도 시도했다. – Alexdr5398
\을 \\로 이스케이프 처리하거나 / –