#NEWLINE# def process_args( ) : #NEWLINE# #INDENT# 'Scans for a path to dev_appserver in sys.argv and pops it.' #NEWLINE# sdk_path = os . path . join ( TESTS_DIR , '..' , '..' , 'google_appengine' ) #NEWLINE# for possible_path in POSSIBLE_SDK_PATHS : #NEWLINE# #INDENT# if os . path . exists ( os . path . join ( possible_path , 'dev_appserver.py' ) ) : #NEWLINE# #INDENT# sdk_path = possible_path #NEWLINE# break #NEWLINE# #UNINDENT# #UNINDENT# if ( not os . path . exists ( os . path . join ( sdk_path , 'dev_appserver.py' ) ) ) : #NEWLINE# #INDENT# sys . stderr . write ( 'Could not find google_appengine SDK path' ) #NEWLINE# sys . exit ( 1 ) #NEWLINE# #UNINDENT# setup_test_env ( sdk_path )