| 17 |  | """ | 
| 18 |  |  | 
| 19 |  | __author__ = "Charles Vardeman (cvardema@nd.edu)" | 
| 20 | < | __version__ = "$Revision: 1.4 $" | 
| 21 | < | __date__ = "$Date: 2006-10-15 18:02:29 $" | 
| 20 | > | __version__ = "$Revision: 1.6 $" | 
| 21 | > | __date__ = "$Date: 2007-01-02 20:30:18 $" | 
| 22 |  | __copyright__ = "Copyright (c) 2006 by the University of Notre Dame" | 
| 23 |  | __license__ = "OOPSE" | 
| 24 |  |  | 
| 38 |  |  | 
| 39 |  | def splitFile(mdFileName,skipFrameNumber): | 
| 40 |  | mdFile = open(mdFileName, 'r') | 
| 41 | + |  | 
| 42 | + | (filepath, filename) = os.path.split(mdFileName) | 
| 43 |  |  | 
| 44 | < | outfilePrefix,ext = os.path.splitext(mdFileName) | 
| 44 | > | (outfilePrefix,ext)  = os.path.splitext(filename) | 
| 45 |  |  | 
| 46 |  |  | 
| 47 |  |  | 
| 85 |  | foundFrames += 1 | 
| 86 |  | division,remainder=divmod(foundFrames,int(skipFrameNumber)) | 
| 87 |  | if (remainder == 0): | 
| 88 | < | outfilename = outfilePrefix + "_" +repr(foundFrames) + ext | 
| 88 | > | outfilename = outfilePrefix + "_" + %04d repr(foundFrames) + ext | 
| 89 |  | outFile = open(outfilename,'w') | 
| 90 |  | outFile.write(OOPSEversion) | 
| 91 |  | for metaline in metaDataFrame: |