Skip to content

Commit 4e2511f

Browse files
committed
add pkg_resources
1 parent cb1804f commit 4e2511f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/usr/bin/env python
2+
# coding=utf-8
3+
from pkg_resources import iter_entry_points
4+
5+
for entry_point in iter_entry_points('magnum.drivers'):
6+
print entry_point, entry_point.load(require=False)

0 commit comments

Comments
 (0)