source: CMIP6dreqbuild/trunk/src/framework/dreqPy/examples/ex202.py @ 736

Subversion URL: http://proj.badc.rl.ac.uk/svn/exarch/CMIP6dreqbuild/trunk/src/framework/dreqPy/examples/ex202.py@736
Revision 736, 445 bytes checked in by mjuckes, 4 years ago (diff)

print statements upgraded to python3

Line 
1import sys, os
2
3if len(sys.argv) > 1:
4  if os.path.isdir( sys.argv[1] ):
5    if os.path.isfile( '%s/scope.py' % sys.argv[1] ):
6      sys.path.insert(0, sys.argv[1] )
7      import scope
8    else:
9      print ( 'No scope.py in specified directory' )
10      sys.exit(0)
11  else:
12    print  ('Specified directoty does not exist' )
13    sys.exit(0)
14else:
15  from dreqPy import scope
16
17
18sc = scope.dreqQuery()
19p=1
20sc.xlsByMipExpt('DCPP',None,p,odir='xls')
Note: See TracBrowser for help on using the repository browser.