<s> """<STR_LIT>""" <EOL> import os , sys <EOL> def get_appid ( ) : <EOL> from google . appengine . api import apiproxy_stub_map <EOL> have_appserver = bool ( apiproxy_stub_map . apiproxy . GetStub ( '<STR_LIT>' ) ) <EOL> if have_appserver : <EOL> appid = os . environ . get ( '<STR_LIT>' ) <EOL> else : <EOL> try : <EOL> from google . appengine . tools import dev_appserver <EOL> from kay import PROJECT_DIR <EOL> appconfig , unused = dev_appserver . LoadAppConfig ( PROJECT_DIR , { } ) <EOL> appid = appconfig . application <EOL> except ImportError : <EOL> appid = None <EOL> return appid <EOL> def get_datastore_paths ( ) : <EOL> """<STR_LIT>""" <EOL> from google . appengine . tools import dev_appserver_main <EOL> datastore_path = dev_appserver_main . DEFAULT_ARGS [ '<STR_LIT>' ] <EOL> history_path = dev_appserver_main . DEFAULT_ARGS [ '<STR_LIT>' ] <EOL> datastore_path = datastore_path . replace ( "<STR_LIT>" , "<STR_LIT>" % <EOL> get_appid ( ) ) <EOL> history_path = history_path . replace ( "<STR_LIT>" , "<STR_LIT>" % <EOL> get_appid ( ) ) <EOL> return datastore_path , history_path <EOL> class NullMemcache ( object ) : <EOL> def get ( self , name ) : <EOL> return None <EOL> def set ( self , name , value , ttl ) : <EOL> return None </s>
