GAE environment differences

Chris Angelico rosuav at gmail.com
Fri May 1 08:15:41 EDT 2015


On Fri, May 1, 2015 at 8:29 PM, Robin Becker <robin at reportlab.com> wrote:
> A user reports getting KeyError/ImportError when executing GAE dev/live code
> looking like
>
>
> import os
> .......
> fn = os.path.expanduser(os.path.join('~','.reportlab_settings'))
> ......
>
> This works fine in cpython; so I assume that the GAE environment must be
> doing module resolution differently.
>
> Is that the case or is it that os.path or os.path.expanduser doesn't exist?

Best thing to do is to ask the user to post the complete traceback.
You might need to use "import os.path" but normally I would expect
that not to be an issue.

ChrisA



More information about the Python-list mailing list