diff options
author | cliechti <cliechti@f19166aa-fa4f-0410-85c2-fa1106f25c8a> | 2005-03-26 00:06:18 +0000 |
---|---|---|
committer | cliechti <cliechti@f19166aa-fa4f-0410-85c2-fa1106f25c8a> | 2005-03-26 00:06:18 +0000 |
commit | 6c9db23427087589e7759f033627fe7584159dc4 (patch) | |
tree | 3cb34390ead65364e02c12fbf9512758fb785bb2 /pyparallel | |
parent | 40e1b078259c6f940014f7f248e7da1a0fb6e7d2 (diff) | |
download | pyserial-git-6c9db23427087589e7759f033627fe7584159dc4.tar.gz |
desciptive exception when giveio is required but not installed
Diffstat (limited to 'pyparallel')
-rw-r--r-- | pyparallel/parallel/parallelwin32.py | 3 |
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: |