Skip to content

Commit

Permalink
r.slopeunits: fix import of grass.scripts (#1284)
Browse files Browse the repository at this point in the history
Fixes

```
Traceback (most recent call last):
  File "/home/neteler/.grass8/addons/r.slopeunits/scripts/r.slopeunits.clean", line 82, in <module>
    import gs.script as gs
ModuleNotFoundError: No module named 'gs'
```

(and related)
  • Loading branch information
neteler authored Jan 22, 2025
1 parent c4c4daa commit 716d827
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
import atexit
import os

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

# initialize global vars
rm_rasters = []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@

# import sys

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

# initialize global vars
rm_rasters = []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
import os
import sys

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

# initialize global vars
rm_rasters = []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@
import math
import os

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

# initialize global vars
rm_rasters = []
Expand Down

0 comments on commit 716d827

Please sign in to comment.