o ¶žâc ã@s ddlmZdd„Zdd„ZdS)é)Úmd5cCsd |pd|pd¡S)zJ Concatenates a interpreter and script into an executable script. z#!{} {}Ú)Úformat)Ú interpreterÚcode©rú=/usr/lib/python3/dist-packages/landscape/lib/scriptcontent.pyÚ build_scriptsr cCs| d¡}t|ƒ ¡ d¡S)z+ Return a hash for a given script. zutf-8Úascii)ÚencoderÚ hexdigest)ÚscriptÚencoded_scriptrrrÚgenerate_script_hash s rN)Úlandscape.lib.hashlibrr rrrrrÚs