Ignore:
Timestamp:
16/10/15 16:13:45 (4 years ago)
Author:
mjuckes
Message:

spurious files removed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CMIP6dreq/trunk/dreqPy/simpleCheck.py

    r411 r425  
    4545    self.lab = lab 
    4646    self.ok = True 
     47 
     48#document directory 
     49    self.docdir = '../docs' 
     50#schema location 
     51    self.schema = '%s/dreq2Schema.xsd' % self.docdir 
     52#sample xml location 
     53    self.sampleXml = '%s/dreq2Sample.xml' % self.docdir 
     54#definition document xml location 
     55    self.defnXml = '%s/dreq2Defn.xml' % self.docdir 
     56 
    4757    ml = inspect.getmembers( self, predicate=inspect.ismethod )  
    4858    ok = True 
     
    6878  def _ch02_importSample(self): 
    6979    import dreq 
    70     rq = dreq.loadDreq( dreqXML='out/dreq2Sample.xml',configdoc='out/dreq2Defn.xml' ) 
     80    rq = dreq.loadDreq( dreqXML=self.sampleXml,configdoc=self.defnXml ) 
    7181    print 'Dreq sample load checked' 
    7282    self.ok = True 
     
    96106      return 
    97107 
    98 #schema location 
    99     schema = '../docs/dreq2Schema.xsd' 
    100 #xml location 
    101     xml = '../docs/dreq2Sample.xml' 
    102  
    103     cmd = 'xmllint --noout --schema %s %s  2> .simpleCheck_check2_err.txt 1>.simpleCheck_check2.txt' % (schema,xml)  
     108    cmd = 'xmllint --noout --schema %s %s  2> .simpleCheck_check2_err.txt 1>.simpleCheck_check2.txt' % (self.schema,self.sampleXml)  
    104109    os.popen( cmd ).readlines() 
    105110    ii = open( '.simpleCheck_check2_err.txt' ).readlines() 
Note: See TracChangeset for help on using the changeset viewer.