[GRASS-git] [OSGeo/grass] 941b53: libgis: Add function to read or read again GISRC v...

Vaclav Petras noreply at github.com
Wed Mar 9 10:23:47 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/OSGeo/grass
  Commit: 941b533cadbe6c6d3760ee0ecf7a8d04dc1007ae
      https://github.com/OSGeo/grass/commit/941b533cadbe6c6d3760ee0ecf7a8d04dc1007ae
  Author: Vaclav Petras <wenzeslaus at gmail.com>
  Date:   2022-03-09 (Wed, 09 Mar 2022)

  Changed paths:
    M .github/workflows/pylint.yml
    M include/grass/defs/gis.h
    M lib/gis/env.c
    A lib/gis/tests/lib_gis_env_test.py

  Log Message:
  -----------
  libgis: Add function to read or read again GISRC var (#2244)

The session file (GISRC file) can be read again (force read) with a double underscore function, but when GISRC environment variable changes, the old file is read because cashed value of GISRC is read. This adds a new function which forces the the update (reading) of the variable regardless of its current value similarly to the file content reading.

This also moves the 'no GISRC' error message to the dedicated reading function (from a function of opening environment/variable/session file).

Runs the C test isolated using a process with multiprocessing otherwise other tests fail.

Also syncs LD_LIBRARY_PATH handling in Pylint workflow to pytest workflow.




More information about the grass-commit mailing list