Tag Archives: google app engine

Google App Engine Tip – Programmatically get AppName and Version

If you ever wondered how to get the AppName and Version of a gae app programmatically (inside the python script itself), here are 2 ways to get it:

os.getcwd()
returns: the path of the app + version.
os.environ[‘PATH_TRANSLATED’]
returns: the path of the app + version + scriptname

Tagged ,