oleg broytmann otdphdppru wed mar 05 2008 121404am 1000 nick coghlan wrote helpful answer zip spec allows additional data included file zip header common way using add zip file end elf executable still using normal zipfile utilities read data zip file section ignore executable part turns actually use trick prepend shebang line like usrbinenv python newline character thats thought whole zip file still binary file doesnt prevent shell reading first line text handing file python execution unix doesnt distinguish text binary files fact actually works also news issue linked previous post first brought attention really works amazing thank oleg oleg broytmann httpphdppru otdphdppru programmers dont die gosub without return _______________________________________________ pythondev mailing list zvlllneumpythonorg httpmailpythonorgmailmanlistinfopythondev unsubscribe httpmailpythonorgmailmanoptionspythondevpythondev40tangomucom wed 06 aug 2008 053940 0300 pythondev documentation ability execute zipfiles directories