From 6c9db23427087589e7759f033627fe7584159dc4 Mon Sep 17 00:00:00 2001 From: cliechti Date: Sat, 26 Mar 2005 00:06:18 +0000 Subject: desciptive exception when giveio is required but not installed --- pyparallel/parallel/parallelwin32.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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: -- cgit v1.2.1