Sophie

Sophie

distrib > Fedora > 18 > i386 > by-pkgid > 93fe4068d04399aa1484b0f95759ac73 > files > 10

python-pymtp-0.0.6-1.fc18.i686.rpm

#!/usr/bin/env python
#
# PyMTP Demo program
# (c) 2013 Hans-Christoph Steiner
# Released under the GPL-3
#

import sys
sys.path.insert(0, "../") # so the examples work out of the box
import pymtp

mtp = pymtp.MTP()
devices = mtp.detect_devices()
for d in devices:
    entry = d.device_entry
    print('found: ' + entry.vendor + " " + entry.product)