• File: findpackage.cpython-37.pyc
  • Full Path: /home3/farmfre2/public_html/ALFA_DATA/alfasymlink/root/opt/alt/python37/lib/python3.7/site-packages/paste/util/__pycache__/findpackage.cpython-37.pyc
  • Date Modified: 12/01/2019 7:09 PM
  • File size: 710 bytes
  • MIME-type: text/x-bytecode.python
  • Charset: 8 bit
B

bN@sddlZddlZddZdS)NcCs|tj|}|}ttjjtj}g}d}xN||kr<d|S|dtj|tj|}||krpt	d||}q*WdS)zo
    Given a directory, finds the equivalent package name.  If it
    is directly in sys.path, returns ''.
    N.rz*%s is not under any path found in sys.path)
ospathabspathmapsysjoininsertbasenamedirname
ValueError)dirZorig_dirrpackagesZlast_dirrG/opt/alt/python37/lib/python3.7/site-packages/paste/util/findpackage.pyfind_packages

r)rrrrrrr<module>s