openpaperwork / pyinsane

Python library to access and use image scanners (Linux/Windows/etc) (Sane/WIA) -- Moved to Gnome's Gitlab
https://gitlab.gnome.org/World/OpenPaperwork/pyinsane
63 stars 24 forks source link

Network scanner not detected #2

Closed tiramiseb closed 11 years ago

tiramiseb commented 11 years ago

My network scanner is not detected.

I've found the following message talking about network scanner detection, in another context. I've understood that the second argument to sane_get_devices needs to be "false" in order to enable network scanner detection : http://lists.alioth.debian.org/pipermail/sane-devel/2003-February/006603.html

So in rawapi.py I've changed line 519 from :

def sane_get_devices(remote=True):

to :

def sane_get_devices(remote=False):

Now, paperwork correctly finds my network scanner. But scanner detection is slower.

I don't know if this solution can be made as default, I don't know if there is any other result when modifying this...

jflesch commented 11 years ago

Darn, my bad: The argument of sane_get_devices() is actually "local_only=(True|False)" and not "remote=(True|False)". I'm going to fix it.

jflesch commented 11 years ago

Fixed in b8438ac540b1b180cbd29429de5a88a7a2a4f76f