#NEWLINE# def create_posix_script( name , executable , scripts_node ) : #NEWLINE# #INDENT# header = ( '#!%(python_exec)s\n' % { #NEWLINE# #INDENT# 'python_exec' : SYS_EXECUTABLE , #NEWLINE# #UNINDENT# } ) #NEWLINE# cnt = ( SCRIPT_TEXT % { #NEWLINE# #INDENT# 'python_exec' : SYS_EXECUTABLE , #NEWLINE# 'module' : executable . module , #NEWLINE# 'function' : executable . function , #NEWLINE# #UNINDENT# } ) #NEWLINE# n = scripts_node . make_node ( name ) #NEWLINE# n . safe_write ( ( header + scripts_node ) ) #NEWLINE# return [ n ]