#NEWLINE# def before_py2exe_build( win_dist_dir ) : #NEWLINE# #INDENT# if os . path . exists ( win_dist_dir ) : #NEWLINE# #INDENT# shutil . rmtree ( win_dist_dir ) #NEWLINE# #UNINDENT# for exe_name in [ 'client' , 'server' ] : #NEWLINE# #INDENT# shutil . copy ( 'counterpartycli/__init__.py' , 'counterparty-{}.py' . format ( exe_name ) ) #NEWLINE# with open ( 'counterparty-{}.py' . format ( exe_name ) , 'a' ) as fp : #NEWLINE# #INDENT# fp . write ( '{}_main()' . format ( exe_name ) ) #NEWLINE# #UNINDENT# #UNINDENT# src = 'C:\\Python34\\Lib\\site-packages\\flask_httpauth.py' #NEWLINE# dst = 'C:\\Python34\\Lib\\site-packages\\flask\\ext\\httpauth.py' #NEWLINE# shutil . copy ( src , dst )