[Checkins] SVN: zopetoolkit/doc/source/releaseteam/package-usage.rst Noted the command I used to check for distributions
Hanno Schlichting
hannosch at hannosch.eu
Tue Jul 6 15:56:35 EDT 2010
Log message for revision 114268:
Noted the command I used to check for distributions
Changed:
U zopetoolkit/doc/source/releaseteam/package-usage.rst
-=-
Modified: zopetoolkit/doc/source/releaseteam/package-usage.rst
===================================================================
--- zopetoolkit/doc/source/releaseteam/package-usage.rst 2010-07-06 19:41:25 UTC (rev 114267)
+++ zopetoolkit/doc/source/releaseteam/package-usage.rst 2010-07-06 19:56:35 UTC (rev 114268)
@@ -18,6 +18,11 @@
point we are only interested if a package is required by a framework in some
way or not.
+In a ``zopepy`` interpreter one can get all active distributions with::
+
+ import pprint, pkg_resources
+ pprint(sorted([p.project_name for p in pkg_resources.working_set.by_key.values()]))
+
ZTK
---
More information about the checkins
mailing list