From b5a7d662bfe9e971b98fa5875e36ae5fda0a2b5c 2011-04-20 21:01:59 From: MinRK Date: 2011-04-20 21:01:59 Subject: [PATCH] handle potentially absent win32api in launcher.py --- diff --git a/IPython/parallel/apps/launcher.py b/IPython/parallel/apps/launcher.py index 36b8345..1e76ed1 100644 --- a/IPython/parallel/apps/launcher.py +++ b/IPython/parallel/apps/launcher.py @@ -591,7 +591,8 @@ def find_job_cmd(): if os.name=='nt': try: return find_cmd('job') - except FindCmdError: + except (FindCmdError, ImportError): + # ImportError will be raised if win32api is not installed return 'job' else: return 'job'