- Timestamp:
- 08/24/06 11:00:40 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bin/asap_update_data
r1179 r1180 12 12 tmpmd5 = tmpdata+'.md5sum' 13 13 14 14 print "Checking if an update is required." 15 15 md5req = urllib2.Request(dataurl+name+'.md5sum') 16 16 response = urllib2.urlopen(md5req) … … 23 23 # get asap module path 24 24 asapbase = asap.__path__[0] 25 25 # use ASAPDATA if set - allows non-root update 26 if os.environ.has_key("ASAPDATA"): 27 asapbase = os.environ["ASAPDATA"] 28 26 29 try: 27 30 fl = os.path.join(asapbase, name+".md5sum") … … 36 39 dreq = urllib2.Request(dataurl+name) 37 40 src = urllib2.urlopen(dreq) 38 print " Downloading asap data archive...."41 print "Update required. Downloading asap data archive...." 39 42 dst = open(tmpdata, 'w') 40 43 dst.write(src.read())
Note:
See TracChangeset
for help on using the changeset viewer.