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

Unified Diff: copy_obj.py

Issue 133213007: Fix copy_src.py (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/libvpx/
Patch Set: Created 6 years, 11 months 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: copy_obj.py
===================================================================
--- copy_obj.py (revision 247557)
+++ copy_obj.py (working copy)
@@ -11,6 +11,7 @@
import shutil
import optparse
import os
+import sys
parser = optparse.OptionParser()
parser.description = __doc__
@@ -18,12 +19,12 @@
parser.add_option('-s', '--source', default=[], action='append',
help='Specify multiple times for multiple sources.')
options, args = parser.parse_args()
-if (not options.destination or not options.sources):
+if (not options.destination or not options.source):
parser.error('Must specify both a destination and one or more sources.')
sys.exit(1)
for src in options.source:
- if os.path.exists(path):
+ if os.path.exists(src):
shutil.copyfile(src, options.destination)
sys.exit(0)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698