pkg_resources ?

km srikrishnamohan at gmail.com
Tue Jun 14 07:14:24 EDT 2011


Hi all,

I am trying to  look at the source code of a python  script (run.py). But
it  reads
###########code - run.py ########################
#!/usr/bin/env python
# EASY-INSTALL-SCRIPT: 'pbpy==0.1','run.py'
__requires__ = 'pbpy==0.1'
import pkg_resources
pkg_resources.run_script('pbpy==0.1', 'run.py')
##############code #####################

What are the advantages of using pkg_resources stuff ?

Thanks
Regards,
KM
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20110614/347af3dd/attachment.html>


More information about the Python-list mailing list