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:
@@ -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.
|
||||
|
||||
|
Reference in New Issue
Block a user