source: CCCC/trunk/ceda_cc/extra/md5s.py @ 344

Subversion URL: http://proj.badc.rl.ac.uk/svn/exarch/CCCC/trunk/ceda_cc/extra/md5s.py@344
Revision 344, 250 bytes checked in by mjuckes, 7 years ago (diff)

cleaned up glob snow variable detection; extra code for map file generation

Line 
1#!/usr/bin/python
2
3import sys, os, string
4
5fpath = sys.argv[1]
6
7fn = string.split(fpath,'/')[-1]
8fns = string.split( fn, '.' )[0]
9sdir = string.replace( fpath, fn, '' )
10
11
12os.popen( '(cd %s;md5sum %s) > md5s/%s.md5sum' % (sdir, fn, fns) ).readlines()
Note: See TracBrowser for help on using the repository browser.