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 | 6a7e29e0fa0ed579e035e7543e35ac4db8f4e0bf (patch) | |
tree | 3cb34390ead65364e02c12fbf9512758fb785bb2 | |
parent | d8c1acdb6a7de35c23a4a89e46334525955eeed2 (diff) | |
download | pyserial-6a7e29e0fa0ed579e035e7543e35ac4db8f4e0bf.tar.gz |
desciptive exception when giveio is required but not installed
git-svn-id: http://svn.code.sf.net/p/pyserial/code/trunk@138 f19166aa-fa4f-0410-85c2-fa1106f25c8a
-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: |