Ignore:
Timestamp:
17/08/16 16:17:30 (4 years ago)
Author:
mjuckes
Message:

corrections to unitTest option

File:
1 edited

Legend:

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

    r643 r722  
    11import sys, os 
    22 
    3 if len(sys.argv) > 1: 
     3if len(sys.argv) > 1 and __name__ == '__main__': 
    44  if os.path.isdir( sys.argv[1] ): 
    55    if os.path.isfile( '%s/scope.py' % sys.argv[1] ): 
     
    1010      sys.exit(0) 
    1111  else: 
    12     print ( 'Specified directoty does not exist' ) 
     12    print ( 'Specified directory does not exist: %s' % sys.argv[1] ) 
    1313    sys.exit(0) 
    1414else: 
Note: See TracChangeset for help on using the changeset viewer.