| Index: chrome_frame/tools/helper_shutdown.py
|
| diff --git a/chrome_frame/tools/helper_shutdown.py b/chrome_frame/tools/helper_shutdown.py
|
| old mode 100644
|
| new mode 100755
|
| index 770adda23b637c8ffaa8ef01b917ab49ddc690d8..a8188087f73f0ac7921b7639da332fce51381895
|
| --- a/chrome_frame/tools/helper_shutdown.py
|
| +++ b/chrome_frame/tools/helper_shutdown.py
|
| @@ -1,14 +1,18 @@
|
| -# Copyright (c) 2010 The Chromium Authors. All rights reserved.
|
| +#!/usr/bin/env python
|
| +# Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
| # Use of this source code is governed by a BSD-style license that can be
|
| # found in the LICENSE file.
|
| -'''This is a simple helper script to shut down the Chrome Frame helper process.
|
| -It needs the Python Win32 extensions.'''
|
| +"""This is a simple helper script to shut down the Chrome Frame helper process.
|
| +
|
| +Requires Python Win32 extensions.
|
| +"""
|
|
|
| import pywintypes
|
| import sys
|
| import win32gui
|
| import win32con
|
|
|
| +
|
| def main():
|
| exit_code = 0
|
| window = win32gui.FindWindow('ChromeFrameHelperWindowClass',
|
| @@ -23,8 +27,8 @@ def main():
|
| print 'Failed to shutdown Chrome Frame helper process: '
|
| print ex
|
| exit_code = 1
|
| -
|
| return exit_code
|
|
|
| +
|
| if __name__ == '__main__':
|
| sys.exit(main())
|
|
|