ó ÒbMc@s‘ddlZddlZddljjZddljjZddlmZm Z dej fd„ƒYZ dej fd„ƒYZ d„ZdS(iÿÿÿÿN(t PD_LOCAL_PATHt PD_PROTO_DIRtScriptNonAbsPathcBs eZdZd„Zd„ZRS(smException that is raised when a file uses a relative path for the binary with which it should be run.cCs#tj|ƒ||_||_dS(N(t Exceptiont__init__tlptbin(tselfRR((s7/usr/lib/python2.7/vendor-packages/pkg/flavor/script.pyR's  cCstdƒt|ƒS(NsE%(lp)s says it should be run with '%(bin)s' which is a relative path.(t_tvars(R((s7/usr/lib/python2.7/vendor-packages/pkg/flavor/script.pyt__str__,s (t__name__t __module__t__doc__RR (((s7/usr/lib/python2.7/vendor-packages/pkg/flavor/script.pyR#s tScriptDependencycBs eZdZd„Zd„ZRS(sTClass representing the dependency created by having #! at the top of a file.cCsPtjj|ƒg}tjj|ƒg}tjj||||||dƒdS(Ntscript(tostpathtbasenametdirnametbasetPublishingDependencyR(RtactionRtpkg_varst proto_dirt base_namestpaths((s7/usr/lib/python2.7/vendor-packages/pkg/flavor/script.pyR4scCs&d|j|j|j|j|jfS(NsPBDep(%s, %s, %s, %s, %s)(RRt run_pathsRtdep_vars(R((s7/usr/lib/python2.7/vendor-packages/pkg/flavor/script.pyt__repr__:s (R R R RR(((s7/usr/lib/python2.7/vendor-packages/pkg/flavor/script.pyR0s cKsö|jdkrggifS|jƒ}|jƒ}|jƒg}g}i}d }|jdgƒ} |jdƒrét|jjddƒdƒt j t j Bt j B@} | rY|dj ƒd} | jƒ} tjj| ƒs|jt|jt| ƒƒqY| jd ƒr-tjjd | d ƒ} n|jt|| ||jtƒƒ|}nd |krétj|||| ƒ\} } }|j| ƒ|j| ƒxC|D]8}||krÑ||j||ƒq§||||s