<s> """<STR_LIT>""" <EOL> import os , sys <EOL> def setup_stubs ( ) : <EOL> GAE_HOME = os . environ . get ( '<STR_LIT>' ) <EOL> if not GAE_HOME : <EOL> print "<STR_LIT>" <EOL> sys . exit ( <NUM_LIT:0> ) <EOL> if not os . path . exists ( os . path . join ( GAE_HOME , "<STR_LIT>" ) ) : <EOL> print "<STR_LIT>" <EOL> sys . exit ( <NUM_LIT:0> ) <EOL> from kalapy . conf import settings <EOL> sys . path = [ os . path . join ( settings . PROJECT_DIR , '<STR_LIT>' ) , GAE_HOME ] + sys . path <EOL> from dev_appserver import fix_sys_path <EOL> fix_sys_path ( ) <EOL> from google . appengine . tools . dev_appserver import SetupStubs , LoadAppConfig <EOL> from google . appengine . tools . dev_appserver_main import ParseArguments <EOL> args , option_dict = ParseArguments ( [ '<STR_LIT>' , settings . PROJECT_DIR ] ) <EOL> config , matcher = LoadAppConfig ( settings . PROJECT_DIR , { } ) <EOL> SetupStubs ( config . application , ** option_dict ) </s>
