On Friday, 1 May 2015 13:09:48 UTC+1, Chris Angelico  wrote:
> 
> Cool! That's part way. So, can you simply stuff OMDBMap into
> sys.modules prior to loading? It might be a bit of a hack, but it
> should work for testing, at least. Conversely, you could change the
> dump script to import via the name my_wsgi_app to make it consistent.
> 
> ChrisA

Sorry for not coming back to this sooner.

In our case we are probably just going to work with a different file format 
because this was something like the 3rd time that the way pickle works caused 
our loading to fail for some reason or other. I think the hoops we need to jump 
through to ensure that the dumping and loading environments match up are too 
high relative to the cost of switching to JSON or similar, especially if we 
might need to load the data from something other than Python in future (god 
forbid).

-- 
Ben Sizer

-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to