accessmod/grasshelper.py
def check_gisdb(gisdb_path):
    """Create a GRASSDATA directory if necessary."""
    if os.path.exists(gisdb_path):
        logger.info("GRASSDATA directory already exists.")
    else:
        os.makedirs(gisdb_path)
        logger.info(f"GRASSDATA directory created at {gisdb_path}.")
Create a GRASSDATA directory if necessary.
Create a GRASSDATA directory if necessary.
Create a GRASSDATA directory if necessary .
def check_gisdb(gisdb_path):
    if os.path.exists(gisdb_path):
        logger.info("GRASSDATA directory already exists.")
    else:
        os.makedirs(gisdb_path)
        logger.info(f"GRASSDATA directory created at {gisdb_path}.")
def check_gisdb ( gisdb_path ) : if os . path . exists ( gisdb_path ) : logger . info ( "GRASSDATA directory already exists." ) else : os . makedirs ( gisdb_path ) logger . info ( f"GRASSDATA directory created at {gisdb_path}." )
Create a GRASSDATA directory if necessary.
Create a GRASSDATA directory if necessary .
"""Create a GRASSDATA directory if necessary."""
gisdb_path