← Back to team overview

fenics team mailing list archive

Re: Problems with Fenics port to Debian/Etch

 

On Sat, Feb 7, 2009 at 11:24 AM, Balbir Thomas <balbir.thomas@xxxxxxxxx> wrote:
> +++ instant-0.9.5/src/instant/cache.py
> @@ -37,8 +37,8 @@
>      except:
>          instant_warning("In instant.import_module_directly: Failed to
> import module '%s' from '%s'." % (modulename, path))
>          module = None
> -    finally:
>          sys.path.pop(0)
> +    sys.path.pop(0)
>      return module

Seems like this will pop twice if an exception occurs?
Move the last sys.path.pop(0) to the end of the try block
just before except:, but keep the one the end of the except block.
I don't think this is your problem though.

Martin


Follow ups

References