|
|
@ -1,5 +1,17 @@ |
|
|
|
from __future__ import (absolute_import, division, print_function, |
|
|
|
from __future__ import (absolute_import, division, print_function, |
|
|
|
unicode_literals) |
|
|
|
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 . import api |
|
|
|
from .api import * |
|
|
|
from .api import * |
|
|
|