Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
import logging
import os
# Add appengine stuff to path
import dev_appserver as script
script.fix_sys_path()
from google.appengine.api import yaml_errors
from google.appengine.tools import dev_appserver
from google.appengine.tools import dev_appserver_main as main
#root of the project
#TODO: Little coupled here, find a better way
root_path = os.path.join(os.path.dirname(__file__), "../../../")
# default options
option_dict = main.DEFAULT_ARGS
# load configuration yaml
config = None
try:
config, matcher = dev_appserver.LoadAppConfig(root_path, {})
except yaml_errors.EventListenerError, e:
logging.error('Fatal error when loading application configuration:\n' +
str(e))
dev_appserver.SetupStubs(config.application, **option_dict)
@scastillo

This comment has been minimized.

Copy link
Owner Author

@scastillo scastillo commented Oct 11, 2010

This is a terrain.py for lettuce to run with gae

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment