Skip to content

Commit

Permalink
fix pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
petrasovaa committed Jul 19, 2023
1 parent 0da9d04 commit 5f23cc9
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions scripts/r.drain/r.drain.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,14 +111,13 @@
import sys
import atexit

import grass.script as grass
import grass.script as gs


def cleanup():
"""Delete temporary direction map."""
if tmp_maps:
grass.run_command(
gs.run_command(
"g.remove",
flags="f",
quiet=True,
Expand Down Expand Up @@ -147,7 +146,7 @@ def main():
fill_map = gs.append_node_pid(f"{valmap_name}_fill")
area_map = gs.append_node_pid(f"{valmap_name}_area")
tmp_maps = dirmap + "," + fill_map + "," + area_map
grass.run_command(
gs.run_command(
"r.fill.dir",
input=valmap,
output=fill_map,
Expand Down Expand Up @@ -180,11 +179,11 @@ def main():
if flags["n"]:
pathflags += "n"

grass.run_command("r.path", flags=pathflags, **kwargs)
gs.run_command("r.path", flags=pathflags, **kwargs)

return 0


if __name__ == "__main__":
options, flags = grass.parser()
options, flags = gs.parser()
sys.exit(main())

0 comments on commit 5f23cc9

Please sign in to comment.