PL i].dZddlZddlZddlZddZdZy)aadds autohandler functionality to Mako templates. requires that the TemplateLookup class is used with templates. usage:: <%! from mako.ext.autohandler import autohandler %> <%inherit file="${autohandler(template, context)}"/> or with custom autohandler filename:: <%! from mako.ext.autohandler import autohandler %> <%inherit file="${autohandler(template, context, name='somefilename')}"/> Nch|j}|jj}|js |jt ||fStjdtj||gz}t|rwddj|z}||k7r=t||r1|js#|jjt ||f|S|St|dk(rn|g|ddt|rw|js#|jjt ||fdSy#t $rYwxYw)Nz([^/]+)/)lookupmodule _template_urifilesystem_checks _uri_cache autohandlerKeyErrorrefindall posixpathdirnamelenjoin _file_exists setdefault)templatecontextnamerr tokenspaths Z/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/mako/ext/autohandler.pyr r !s2 ^^FOO11M  # # $$k=$%GH HZZ I$5$5m$D E NF f+SXXf%% = \&$%?++((33 -6 v;!  frs  f+  # #  ++ - .  -   sD%% D10D1ctjdd|}|jD])}tjj |dz|zs)yy)Nz^/rTF)rsub directoriesosrexists)rrpsubds rrr@sI 66%T "D    77>>!c'D. ))r )__doc__r rrr rr$rr's*  >r$