Commit 3dce515f authored by R.K.Garcia's avatar R.K.Garcia
Browse files

fix non-module classic install case

parent dbef6d97
......@@ -4,7 +4,12 @@ import numpy as np
import os, sys, re
from collections import namedtuple
import logging
from .HimawariInterface import HIMAWARI_INTERFACE
try:
from .HimawariInterface import HIMAWARI_INTERFACE
except (ImportError, ValueError):
# non-module case ("classic" make instead of python setup.py install)
from HimawariInterface import HIMAWARI_INTERFACE
LOG = logging.getLogger(__name__)
from cffi import FFI
ffi = FFI()
......@@ -287,7 +292,11 @@ class HimawariScene(object):
return ydata, xdata
def geo(self, **kwargs):
from .cgms_nav import cgms_nav
try:
from .cgms_nav import cgms_nav
except (ImportError, ValueError):
# non-module run case
from cgms_nav import cgms_nav
nav = self.navigation
fgf_y, fgf_x = self.coords(**kwargs)
args = dict(
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment