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

Unified Diff: chrome/test/pyautolib/generate_docs.py

Issue 8680018: Fix python scripts in src/chrome/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: copyright 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
« no previous file with comments | « chrome/test/pyautolib/fetch_prebuilt_pyauto.py ('k') | chrome/test/pyautolib/history_info.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/pyautolib/generate_docs.py
diff --git a/chrome/test/pyautolib/generate_docs.py b/chrome/test/pyautolib/generate_docs.py
old mode 100644
new mode 100755
index 352b45364b31f7fb2cbd8848ef573404142cbb13..a603ad8008600d2c8038cd2fcf8557be817d480f
--- a/chrome/test/pyautolib/generate_docs.py
+++ b/chrome/test/pyautolib/generate_docs.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/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.
@@ -36,7 +36,7 @@ def main():
if options.dir == os.getcwd():
print 'Export complete, files are located in %s' % options.dir
- return
+ return 1
new_files = current_contents.difference(previous_contents)
for file_name in new_files:
@@ -50,8 +50,8 @@ def main():
shutil.move(full_path, options.dir)
print 'Export complete, files are located in %s' % options.dir
+ return 0
if __name__ == '__main__':
- main()
-
+ sys.exit(main())
« no previous file with comments | « chrome/test/pyautolib/fetch_prebuilt_pyauto.py ('k') | chrome/test/pyautolib/history_info.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698