Well the first thing I tried was reading in the app.yaml, which
apparently we're not allowed to do:

The following throws an exception:

f = open(os.path.join(os.path.split(__file__)[0], 'app.yaml'), 'r')

In production your files are in a different folder structure than they
are locally, and they're actyally broken out by version.

I believe you should be able to parse the folder structure to
determine the version.  Here's a file path from one of my app's logs:

/base/data/home/apps/userloggr/3.339408028936255451/userlogger/user/
views.py

The first '3' in '3.339...' looks like it's the version

Mark

On May 17, 11:34 pm, rambius <[email protected]> wrote:
> Hello,
>
> I started to learn how to write apps for Google App Engine and I
> developed some small helloworld applications which I can run both
> locally and on GAE itself. I use Python.
>
> I want now to show the version of the application as defined in
> app.yaml in one of the app pages. I looked for an API that I could
> call from a Request Handler and that would give me that value but I
> found nothing.
>
> Is there a way to achieve this? If yes, I would would be grateful for
> any hints and pointers.
>
> Thank you very much in advance.
>
> Regards
> Rambius
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google App Engine" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group 
> athttp://groups.google.com/group/google-appengine?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to