Changeset 580


Ignore:
Timestamp:
28/01/16 21:06:50 (3 years ago)
Author:
mjuckes
Message:

adjusted to run checks smoothly from pypi package

Location:
CMIP6dreqbuild/trunk/src/framework/dreqPy
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • CMIP6dreqbuild/trunk/src/framework/dreqPy/dreqCmdl.py

    r579 r580  
    99   Wrapper for use with setuptools. 
    1010  """ 
    11   print '**********',sys.argv[0] 
    1211  if len(sys.argv) == 1: 
    1312      # Show command-line info and report that you must provide arguments 
  • CMIP6dreqbuild/trunk/src/framework/dreqPy/simpleCheck.py

    r520 r580  
    11from __init__ import DOC_DIR 
    2 import string, os 
     2import string, os, sys 
    33 
    44try: 
     
    4444    self.lab = lab 
    4545    self.ok = True 
     46    self.entryPoint = sys.argv[0].split( '/' )[-1] 
    4647 
    4748#document directory 
     
    9495  def _ch04_checkCmd(self): 
    9596    import os 
    96     os.popen( 'python dreqCmdl.py -v  2> .simpleCheck_check2_err.txt 1>.simpleCheck_check2.txt' ).readlines() 
     97    if self.entryPoint == 'drq': 
     98       cmd = 'drq' 
     99    else: 
     100       cmd = 'python dreqCmdl.py' 
     101 
     102    os.popen( '%s -v  2> .simpleCheck_check2_err.txt 1>.simpleCheck_check2.txt' % cmd ).readlines() 
     103 
    97104    ii = open( '.simpleCheck_check2_err.txt' ).readlines() 
    98105    if len(ii) > 0: 
Note: See TracChangeset for help on using the changeset viewer.