Skip to content

Commit

Permalink
Update python/grass/grassdb/manage.py
Browse files Browse the repository at this point in the history
Co-authored-by: Anna Petrasova <kratochanna@gmail.com>
  • Loading branch information
lindakarlovska and petrasovaa authored Apr 8, 2021
1 parent 14c5fcc commit a352e87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/grass/grassdb/manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,6 @@ def rename_location(database, old_name, new_name):

def split_mapset_path(mapset_path):
"""Split mapset path to three parts - grassdb, location, mapset"""
path, mapset = os.path.split(mapset_path)
path, mapset = os.path.split(mapset_path.rstrip(os.sep))
grassdb, location = os.path.split(path)
return grassdb, location, mapset

0 comments on commit a352e87

Please sign in to comment.