from distutils.core import setup
import py2exe
import glob
setup(
#console = ['test.py'],
windows = [{'script':'client.py', 'icon_resources':[(1,'project.ico')]}],
options = { 'py2exe': { 'compressed':1
,'optimize':2
,'dist_dir':'./dist'
,'bundle_files':1
}},
zipfile = None,
data_files = [('img', glob.glob('img/*.bmp'))]
)
위코드중 console 모드와 windows 모드가 있다. windows 모드는 백그라운드로 돌아감..
icon_resourse 를 바꾸면 아이콘 모양도 바꿀수 있다.
'Python' 카테고리의 다른 글
[python 2.7] telnetlib를 이용한 telnet 접속하기 (0) | 2012.12.21 |
---|---|
[ python 2.7 ] HTTP POST data 전송하는 방법 (0) | 2012.10.17 |
[ python 2.7 ] 파이썬 으로 만들어본 리버스 커넥션 + 업로드+ 다운로드 (0) | 2012.09.26 |
[python 2.7 ] 경로에서 파일명이나 경로만 파싱하기 (0) | 2012.09.26 |
[python 2.7] Reverse TCP connection Simple code (0) | 2012.09.25 |