| Index: tools/site_compare/drivers/win32/windowing.py
|
| diff --git a/tools/site_compare/drivers/win32/windowing.py b/tools/site_compare/drivers/win32/windowing.py
|
| old mode 100644
|
| new mode 100755
|
| index fe77c56928d402fcf01fb86fa220cf101e32382e..47d63f02272ab208ef4ec705c791ec33e3bf6805
|
| --- a/tools/site_compare/drivers/win32/windowing.py
|
| +++ b/tools/site_compare/drivers/win32/windowing.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.
|
|
|
| @@ -338,7 +338,8 @@ def PreparePath(path):
|
| except OSError, e:
|
| if e[0] != 17: raise e # error 17: path already exists
|
|
|
| -if __name__ == "__main__":
|
| +
|
| +def main():
|
| PreparePath(r"c:\sitecompare\scrapes\ie7")
|
| # We're being invoked rather than imported. Let's do some tests
|
|
|
| @@ -360,3 +361,6 @@ if __name__ == "__main__":
|
|
|
| EndProcess(proc, 0)
|
|
|
| +
|
| +if __name__ == "__main__":
|
| + sys.exit(main())
|
|
|