summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcliechti <cliechti@f19166aa-fa4f-0410-85c2-fa1106f25c8a>2005-03-26 00:06:18 +0000
committercliechti <cliechti@f19166aa-fa4f-0410-85c2-fa1106f25c8a>2005-03-26 00:06:18 +0000
commit6c9db23427087589e7759f033627fe7584159dc4 (patch)
tree3cb34390ead65364e02c12fbf9512758fb785bb2
parent40e1b078259c6f940014f7f248e7da1a0fb6e7d2 (diff)
downloadpyserial-git-6c9db23427087589e7759f033627fe7584159dc4.tar.gz
desciptive exception when giveio is required but not installed
-rw-r--r--pyparallel/parallel/parallelwin32.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pyparallel/parallel/parallelwin32.py b/pyparallel/parallel/parallelwin32.py
index 5c287cb..5754578 100644
--- a/pyparallel/parallel/parallelwin32.py
+++ b/pyparallel/parallel/parallelwin32.py
@@ -58,7 +58,8 @@ os.environ['PATH'] = os.environ['PATH'] + ';' + os.path.abspath(os.path.dirname(
#python extension in earlier versions of this modules
_pyparallel = ctypes.windll.simpleio
#need to initialize giveio on WinNT based systems
-_pyparallel.init()
+if _pyparallel.init():
+ raise IOError('Could not access the giveio driver which is required on NT based systems.')
class Parallel: