Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3268)

Unified Diff: chrome/test/chromeos/autotest/files/client/deps/pyauto_dep/pyauto_dep.py

Issue 8680018: Fix python scripts in src/chrome/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/test/chromeos/autotest/files/client/deps/pyauto_dep/pyauto_dep.py
diff --git a/chrome/test/chromeos/autotest/files/client/deps/pyauto_dep/pyauto_dep.py b/chrome/test/chromeos/autotest/files/client/deps/pyauto_dep/pyauto_dep.py
index 444d395c5f9f2c5a814bf1cfd17a8e52e16c7198..132c3ce40d1acb4f74dd01e334c41b7696735f45 100755
--- a/chrome/test/chromeos/autotest/files/client/deps/pyauto_dep/pyauto_dep.py
+++ b/chrome/test/chromeos/autotest/files/client/deps/pyauto_dep/pyauto_dep.py
@@ -1,5 +1,4 @@
-#!/usr/bin/python
-
+#!/usr/bin/env python
# Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
@@ -18,5 +17,10 @@ def setup(top_dir):
return
-pwd = os.getcwd()
-utils.update_version(pwd + '/src', False, version, setup, None)
+def main():
+ pwd = os.getcwd()
+ utils.update_version(pwd + '/src', False, version, setup, None)
+
+
+if __name__ == '__main__':
+ sys.exit(main())

Powered by Google App Engine
This is Rietveld 408576698