<s> import code <EOL> import getpass <EOL> import sys <EOL> sys . path . append ( "<STR_LIT>" ) <EOL> sys . path . append ( "<STR_LIT>" ) <EOL> from google . appengine . ext . remote_api import remote_api_stub <EOL> from google . appengine . ext import db <EOL> def auth_func ( ) : <EOL> return raw_input ( '<STR_LIT>' ) , getpass . getpass ( '<STR_LIT>' ) <EOL> if len ( sys . argv ) < <NUM_LIT:2> : <EOL> print "<STR_LIT>" % ( sys . argv [ <NUM_LIT:0> ] , ) <EOL> app_id = sys . argv [ <NUM_LIT:1> ] <EOL> if len ( sys . argv ) > <NUM_LIT:2> : <EOL> host = sys . argv [ <NUM_LIT:2> ] <EOL> else : <EOL> host = '<STR_LIT>' % app_id <EOL> remote_api_stub . ConfigureRemoteDatastore ( app_id , '<STR_LIT>' , auth_func , host ) <EOL> code . interact ( '<STR_LIT>' % ( app_id , ) , None , locals ( ) ) </s>
