severity 579983 minor retitle 579983 sane.init() not undocumented properly thanks
OK, this turned out to be a simple case of misleading documentation. sanedoc.txt.gz first claims (emphasis mine):
=== Begin === The module exports two object types, a bunch of constants, and _two_ functions. get_devices() [...] open(devicename) [...] === End ===But in order for the module to actually work, one needs to call the init() function. It's used later in the same file in an example, though apparently only in order to retrieve the version number:
=== Begin ===
print 'SANE version:', sane.init()
=== End ===This is the only mention of init() and "pydoc sane.init" doesn't provide any insight either.
CU Sascha -- http://sascha.silbe.org/ http://www.infra-silbe.de/
signature.asc
Description: Digital signature

