Changeset 725
- Timestamp:
- 17/08/16 16:24:36 (5 years ago)
- Location:
- CMIP6dreq/trunk/dreqPy
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
CMIP6dreq/trunk/dreqPy/dreq.py
r717 r725 9 9 import re, shelve, os, sys 10 10 try: 11 from __init__ import DOC_DIR, version 11 from __init__ import DOC_DIR, version, PACKAGE_DIR 12 12 except: 13 from dreqPy.__init__ import DOC_DIR, version 13 from dreqPy.__init__ import DOC_DIR, version, PACKAGE_DIR 14 14 15 15 python2 = True … … 530 530 assert len( bits ) > 1, 'Failed to parse line in manifest %s: \n%s' % (manifest,l) 531 531 for b in bits[:2]: 532 if not os.path.isfile( b ): 533 b = '%s/%s' % (PACKAGE_DIR,b) 532 534 assert os.path.isfile( b ), 'File %s not found (listed in %s)' % (b,manifest ) 533 535 docl.append( tuple( bits[:2] ) ) -
CMIP6dreq/trunk/dreqPy/dreqCmdl.py
r540 r725 22 22 import simpleCheck 23 23 print( "Starting test suite 2" ) 24 import example 24 import examples.ex203 25 25 print( "Tests completed" ) 26 26 else: -
CMIP6dreq/trunk/dreqPy/examples/ex203.py
r648 r725 1 1 import sys, os 2 2 3 if len(sys.argv) > 1 :3 if len(sys.argv) > 1 and __name__ == '__main__': 4 4 if os.path.isdir( sys.argv[1] ): 5 5 if os.path.isfile( '%s/scope.py' % sys.argv[1] ): … … 10 10 sys.exit(0) 11 11 else: 12 print ( 'Specified directo ty does not exist')12 print ( 'Specified directory does not exist: %s' % sys.argv[1] ) 13 13 sys.exit(0) 14 14 else: -
CMIP6dreq/trunk/dreqPy/packageConfig.py
r717 r725 7 7 import os 8 8 9 HERE= os.path.dirname(os.path.abspath(__file__) )9 PACKAGE_DIR = os.path.dirname(os.path.abspath(__file__) ) 10 10 11 11 ##DOC_DEFAULT_DIR 12 DOC_DEFAULT_DIR = os.path.join( HERE, 'docs')12 DOC_DEFAULT_DIR = os.path.join(PACKAGE_DIR, 'docs') 13 13 14 14 DOC_DIR = os.environ.get('DRQ_CONFIG_DIR', DOC_DEFAULT_DIR)
Note: See TracChangeset
for help on using the changeset viewer.