Skip to content

Commit

Permalink
grass.jupyter: fix reinitializing session (#3563)
Browse files Browse the repository at this point in the history
  • Loading branch information
petrasovaa authored Apr 6, 2024
1 parent d32dfb5 commit 9f49630
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/grass/jupyter/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

import os
import weakref
from pathlib import Path

import grass.script as gs

Expand Down Expand Up @@ -87,6 +88,7 @@ def switch_mapset(self, path, location=None, mapset=None):
if (
not location
and not mapset
and len(Path(path).parts) == 1
and mapset_exists(
path=gisenv["GISDBASE"], location=gisenv["LOCATION_NAME"], mapset=path
)
Expand Down

0 comments on commit 9f49630

Please sign in to comment.