Skip to content

Commit

Permalink
i.fusion.hpf: fix import funcs from high_pass_filter module (#1014)
Browse files Browse the repository at this point in the history
  • Loading branch information
tmszi committed Jan 13, 2024
1 parent 73bd437 commit f4bae62
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/imagery/i.fusion.hpf/i.fusion.hpf.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,14 +189,7 @@
# TODO: avoid PyGRASS altogether
import grass.script as grass

# from grass.pygrass.raster.abstract import Info
from grass.pygrass.utils import get_lib_path

# add "etc" directory to $PATH
path = get_lib_path("i.fusion.hpf", "")
if path is None:
raise ImportError("Not able to find the path %s directory." % path)
sys.path.append(path)
grass.utils.set_path(modulename="i.fusion.hpf", dirname="etc")

# import modules from "etc"
from high_pass_filter import (
Expand Down

0 comments on commit f4bae62

Please sign in to comment.