old_contents: #!/usr/bin/env python
  
  # Copyright (c) 2009 Google Inc. All rights reserved.
  # Use of this source code is governed by a BSD-style license that can be
  # found in the LICENSE file.
  
  import sys
  import os.path
  
  # TODO(mark): sys.path manipulation is some temporary testing stuff.
  try:
    import gyp
    sys.path.append(os.path.join(os.path.dirname(sys.argv[0]), '..'))
    os.environ['PYTHON_EXECUTABLE'] = sys.executable
  except ImportError, e:
    sys.path.append(os.path.join(os.path.dirname(sys.argv[0]), 'pylib'))
    import gyp
    
  if __name__ == '__main__':
    sys.exit(gyp.script_main())
  
new_contents: #!/usr/bin/env python
  
  # Copyright (c) 2009 Google Inc. All rights reserved.
  # Use of this source code is governed by a BSD-style license that can be
  # found in the LICENSE file.
  
  import sys
  import os.path
  
  # TODO(mark): sys.path manipulation is some temporary testing stuff.
  try:
    sys.path.append(os.path.join(os.path.dirname(sys.argv[0]), '..'))
    os.environ['PYTHON_EXECUTABLE'] = sys.executable
    import gyp
  except ImportError, e:
    sys.path.append(os.path.join(os.path.dirname(sys.argv[0]), 'pylib'))
    import gyp
    
  if __name__ == '__main__':
    sys.exit(gyp.script_main())
  
subject: swap sequence, so the exception gets thrown later.