Changeset 734


Ignore:
Timestamp:
17/08/16 19:39:16 (3 years ago)
Author:
mjuckes
Message:

trying to fix imports ....

File:
1 edited

Legend:

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

    r722 r734  
    33""" 
    44 
    5 import scope, sys 
     5## this enable python3 cleanly (replacing "import scope") 
     6## but does not work as __main__ 
     7import sys 
     8from . import scope 
    69 
    710def main_entry(): 
     
    1619 
    1720  if sys.argv[1] == '-v': 
    18       from packageConfig import __version__, __versionComment__ 
     21      from .packageConfig import __version__, __versionComment__ 
    1922      print( 'dreqPy version %s [%s]' % (__version__,__versionComment__) ) 
    2023  elif sys.argv[1] == '--unitTest': 
     
    2225      import simpleCheck 
    2326      print( "Starting test suite 2" ) 
    24       import examples.ex203 
     27      from .examples import ex203 
    2528      print( "Tests completed" ) 
    2629  else: 
Note: See TracChangeset for help on using the changeset viewer.