Skip to content

Commit

Permalink
Merge pull request #1 from shulai/master
Browse files Browse the repository at this point in the history
Fixes required for newer Python versions and Linux platform detection.
  • Loading branch information
soachishti committed May 16, 2016
2 parents 8f3793f + 75cc01d commit 32507b4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pyScanLib/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import sys
import unitConverter # Contains unit converting functions ie millimeter to inch (mmToInch) etc
from . import unitConverter # Contains unit converting functions ie millimeter to inch (mmToInch) etc

"""
* pyScanLib
Expand Down Expand Up @@ -33,13 +33,13 @@
platform = sys.platform

if platform == "win32":
import twainLib
from . import twainLib

class pyScanLib(twainLib.twainLib, unitConverter.unitConverter):
pass

elif platform == "linux":
import saneLib
elif platform.startswith("linux"):
from . import saneLib

class pyScanLib(saneLib.saneLib, unitConverter.unitConverter):
pass
Expand Down

0 comments on commit 32507b4

Please sign in to comment.