Changeset 12186


Ignore:
Timestamp:
05/03/12 11:02:26 (13 years ago)
Author:
Mathieu Morlighem
Message:

Do not delete file if it already exists

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/scripts/DownloadExternalPackage.py

    r12180 r12186  
    1313#Remove file if it already exists
    1414if os.path.exists(localFile):
    15         print "File "+ localFile +"Already exists, deleting..."
    16         os.remove(localFile)
     15        print "File "+ localFile +" already exists and will not be downloaded..."
     16        return
    1717
    1818#Try to download from url
Note: See TracChangeset for help on using the changeset viewer.