diff --git a/build/lib.win-amd64-3.6/wrf/__init__.py b/build/lib.win-amd64-3.6/wrf/__init__.py deleted file mode 100644 index 9952d4d..0000000 --- a/build/lib.win-amd64-3.6/wrf/__init__.py +++ /dev/null @@ -1,20 +0,0 @@ -from __future__ import (absolute_import, division, print_function, - unicode_literals) -import os -import pkg_resources - -# For gfortran+msvc combination, extra shared libraries may exist (stored by numpy.distutils) -if os.name == 'nt': - try: - req = pkg_resources.Requirement('wrf-python') - extra_dll_dir = pkg_resources.resource_filename(req, 'wrf-python/extra-dll') - if os.path.isdir(extra_dll_dir): - os.environ['PATH'] += os.pathsep + extra_dll_dir - except ImportError: - pass - -from . import api -from .api import * - -__all__ = [] -__all__.extend(api.__all__) diff --git a/src/wrf/__init__.py b/src/wrf/__init__.py index ae2d6f1..2365ac4 100755 --- a/src/wrf/__init__.py +++ b/src/wrf/__init__.py @@ -1,5 +1,17 @@ from __future__ import (absolute_import, division, print_function, unicode_literals) +import os +import pkg_resources + +# For gfortran+msvc combination, extra shared libraries may exist (stored by numpy.distutils) +if os.name == 'nt': + try: + req = pkg_resources.Requirement.parse('wrf-python') + extra_dll_dir = pkg_resources.resource_filename(req, 'wrf-python/extra-dll') + if os.path.isdir(extra_dll_dir): + os.environ['PATH'] += os.pathsep + extra_dll_dir + except ImportError: + pass from . import api from .api import *