2016-06-20 12 views
0

以下のオプションフィールドに{'include_files':includefiles}を追加するにはどうすればよいですか? 私が得るのは、Pythonのエラーです。cx_freeze issue python3セットアップファイル

from cx_Freeze import setup, Executable as cxExecutable 
import platform 
import sys 


# -*- coding: utf-8 -*- 

base = None 
if sys.platform == 'win32': 
    base = 'Win32GUI' 

build_exe_options = { 
"include_msvcr": True 
} 


WIN_Target = cxExecutable(
    script='PlayTubeInstaller.pyw', 
    base=base, 
# if sys.platform == 'win32': base = 'Win32GUI' 
    icon="Icon.ico" 
) 



includefiles = [ 'Icon.ico' , 'PlayTube.ipa' , 'libmobiledevice/' ] 

setup(
    name = 'Installer', 
    version = '0.1', 
    description = 'A general enhancement utility', 
    author = 'Steve Jobs', 
    options = {'build_exe': build_exe_options}, 
    executables=[WIN_Target] 
) 

答えて

0
build_exe_options = { 
"include_msvcr": True, 
"includes": [ 'Icon.ico' , 'PlayTube.ipa' , 'libmobiledevice/' ], 
} 
+0

にSyntaxErrorが、私はそれにコンマが欠けていた – ssrerereee

+0

間違っているのだろうか、もう一度お試しください。また、正確なエラートレースバックを実際に貼り付けると便利です。 – Chris

関連する問題