Fixing a path and Ant invocation issue in build_zxing.py and delete_file issue in helper_functions.py

Review URL: https://webrtc-codereview.appspot.com/761006

git-svn-id: http://webrtc.googlecode.com/svn/trunk@2688 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
vspasova@webrtc.org
2012-08-30 12:56:38 +00:00
parent 16cfbe2e89
commit 1b0a02e12e
4 changed files with 29 additions and 32 deletions

View File

@@ -34,22 +34,6 @@ def zero_pad(number, padding=_DEFAULT_PADDING):
return str(number).zfill(padding)
def delete_file(file_name):
"""Deletes the file with file_name.
Args:
file_name(string): The file to be deleted.
Return:
(bool): True on success, False otherwise.
"""
try:
subprocess.check_call(['rm', '%s' % file_name])
except subprocess.CalledProcessError, err:
sys.stderr.write('Error in deleting file %s' % file_name)
return False
return True
def run_shell_command(command, msg=None):
"""Executes a command.