forked from 3rdparty/wrf-python
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
717 B
25 lines
717 B
from __future__ import (absolute_import, division, print_function) |
|
import os |
|
import pkg_resources |
|
|
|
try: |
|
from . import api |
|
from .api import * |
|
except ImportError: |
|
# For gfortran+msvc combination, extra shared libraries may exist |
|
# (stored by numpy.distutils) |
|
if os.name == "nt": |
|
req = pkg_resources.Requirement.parse("wrf-python") |
|
extra_dll_dir = pkg_resources.resource_filename(req, |
|
"wrf-python/.libs") |
|
if os.path.isdir(extra_dll_dir): |
|
os.environ["PATH"] += os.pathsep + extra_dll_dir |
|
|
|
from . import api |
|
from .api import * |
|
else: |
|
raise |
|
|
|
|
|
__all__ = [] |
|
__all__.extend(api.__all__)
|
|
|