diff options
Diffstat (limited to 'tools/site_compare/drivers/win32/keyboard.py')
-rwxr-xr-x[-rw-r--r--] | tools/site_compare/drivers/win32/keyboard.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tools/site_compare/drivers/win32/keyboard.py b/tools/site_compare/drivers/win32/keyboard.py index 246e14c..e3410e1 100644..100755 --- a/tools/site_compare/drivers/win32/keyboard.py +++ b/tools/site_compare/drivers/win32/keyboard.py @@ -1,5 +1,5 @@ -#!/usr/bin/python2.4 -# Copyright (c) 2006-2008 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. @@ -166,7 +166,8 @@ def TypeString(string_to_type, if ctrl_held: PressKey(False, win32con.VK_CONTROL) if alt_held: PressKey(False, win32con.VK_MENU) -if __name__ == "__main__": + +def main(): # We're being invoked rather than imported. Let's do some tests # Press command-R to bring up the Run dialog @@ -196,3 +197,5 @@ if __name__ == "__main__": time_between_keystrokes=0.05) +if __name__ == "__main__": + sys.exit(main()) |