Skip to content

Commit

Permalink
grass.py: Match.__getitem__ is new from version 3.6, we need to use g…
Browse files Browse the repository at this point in the history
…roup()
  • Loading branch information
petrasovaa committed Dec 10, 2019
1 parent d67d646 commit dc976cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/init/grass.py
Expand Up @@ -1173,8 +1173,8 @@ def load_env(grass_env_file):
continue

# k is the variable name and v is its value
k = m[1]
v = m[2]
k = m.group(1)
v = m.group(2)
# let's try to expand any $var's in v
expand = True
if v.startswith("'") and v.endswith("'"):
Expand Down

0 comments on commit dc976cf

Please sign in to comment.