def _fix_path():
import os<EOL>import sys<EOL>all_paths = os.environ.get('<STR_LIT>').split(os.pathsep)<EOL>for path_dir in all_paths:<EOL><INDENT>dev_appserver_path = os.path.join(path_dir, '<STR_LIT>')<EOL>if os.path.exists(dev_appserver_path):<EOL><INDENT>logging.debug('<STR_LIT>')<EOL>google_appengine = os.path.dirname(os.path.realpath(dev_appserver_path))<EOL>sys.path.append(google_appengine)<EOL>dev_appserver = __import__('<STR_LIT>')<EOL>sys.path.extend(dev_appserver.EXTRA_PATHS)<EOL>return<EOL><DEDENT><DEDENT>
Finds the google_appengine directory and fixes Python imports to use it.