def _SetupPaths():
sdk_path = _FindSdkPath()<EOL>if sdk_path:<EOL><INDENT>sys.path.append(sdk_path)<EOL>try:<EOL><INDENT>import dev_appserver  <EOL>if hasattr(dev_appserver, '<STR_LIT>'):<EOL><INDENT>dev_appserver.fix_sys_path()<EOL><DEDENT>else:<EOL><INDENT>logging.warning(_NO_FIX_SYS_PATH_WARNING)<EOL><DEDENT><DEDENT>except ImportError:<EOL><INDENT>logging.warning(_IMPORT_ERROR_WARNING)<EOL><DEDENT><DEDENT>else:<EOL><INDENT>logging.warning(_NOT_FOUND_WARNING)<EOL><DEDENT>from google.appengine.ext import vendor<EOL>vendor.add(os.path.dirname(os.path.dirname(__file__)))<EOL>
Sets up the sys.path with special directories for endpointscfg.py.