Ńņ
ō³Kc @ s% d d k Z d d k Z d Z d S( i’’’’Nc C s¶ t i i | } | } t t i i t i } g } d } xs | | j o d i | S| i d t i i | t i i | } | | j o t
d | n | } q? d S( so
Given a directory, finds the equivalent package name. If it
is directly in sys.path, returns ''.
t .i s* %s is not under any path found in sys.pathN( t ost patht abspatht mapt syst Nonet joint insertt basenamet dirnamet
ValueError( t dirt orig_dirR t packagest last_dir( ( s: /usr/lib/python2.6/site-packages/paste/util/findpackage.pyt find_package s
( R R R ( ( ( s: /usr/lib/python2.6/site-packages/paste/util/findpackage.pyt