<s> import unittest <EOL> import sys <EOL> import os <EOL> PROJECT_PATH = os . path . sep . join ( os . path . abspath ( __file__ ) . split ( os . path . sep ) [ : - <NUM_LIT:2> ] ) <EOL> ROOT_PATH = os . path . dirname ( __file__ ) <EOL> def main ( ) : <EOL> path_setup ( ) <EOL> tests = unittest . TestLoader ( ) . discover ( ROOT_PATH , "<STR_LIT>" ) <EOL> result = unittest . TextTestRunner ( ) . run ( tests ) <EOL> if not result . wasSuccessful ( ) : <EOL> sys . exit ( <NUM_LIT:1> ) <EOL> def path_setup ( ) : <EOL> if '<STR_LIT>' in os . environ : <EOL> SDK_PATH = os . environ [ '<STR_LIT>' ] <EOL> sys . path . insert ( <NUM_LIT:0> , SDK_PATH ) <EOL> import dev_appserver <EOL> dev_appserver . fix_sys_path ( ) <EOL> sys . path . append ( os . path . join ( PROJECT_PATH , '<STR_LIT>' ) ) <EOL> sys . path . append ( os . path . join ( PROJECT_PATH , '<STR_LIT>' ) ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> main ( ) </s>
