nick coghlan uytankmfgmailcom oleg broytmann wrote tue mar 04 2008 103542pm 1000 nick coghlan wrote needing explicit interpreter option makes shebang friendly sorry missed something one combine zipfile shebang script carefully 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 whole zip file still binary file doesnt prevent shell reading first line text handing file python execution fact actually works also news issue linked previous post first brought attention cheers nick nick coghlan uytankmfgmailcom brisbane australia httpwwwboredomandlazinessorg _______________________________________________ pythondev mailing list zvlllneumpythonorg httpmailpythonorgmailmanlistinfopythondev unsubscribe httpmailpythonorgmailmanoptionspythondevpythondev40tangomucom wed 06 aug 2008 124007 1000 pythondev documentation ability execute zipfiles directories