[GRASS-dev] GUI -> change working directory - what should this action do?

hi,

today, I saw for the first time :wink: in the GUI:

Settings β†’ GRASS working environment β†’ Change working directory.

what should this action do? has this ever be tested in winGRASS? how could
this be tested?

-----
best regards
Helmut
--
Sent from: http://osgeo-org.1560.x6.nabble.com/Grass-Dev-f3991897.html

On Fri, Dec 11, 2020 at 5:32 PM Helmut Kudrnovsky <hellik@web.de> wrote:

hi,

today, I saw for the first time :wink: in the GUI:

…and there might be more :slight_smile:

Settings β†’ GRASS working environment β†’ Change working directory.

what should this action do?

Call os.chdir(), Python equivalent of unix cd, i.e., change current working directory. Is this something outlandish on Windows? Try also cd command in Console.

has this ever be tested in winGRASS?

Tested and used at least in classrooms.

how could this be tested?

Any module with import, export, read, or save file will use the current working directory when a filename, but no (or relative) path is specified.

Vaclav


best regards
Helmut

Sent from: http://osgeo-org.1560.x6.nabble.com/Grass-Dev-f3991897.html


grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

On Mon, Dec 14, 2020 at 5:11 AM Vaclav Petras <wenzeslaus@gmail.com> wrote:

On Fri, Dec 11, 2020 at 5:32 PM Helmut Kudrnovsky <hellik@web.de> wrote:

hi,

today, I saw for the first time :wink: in the GUI:

…and there might be more :slight_smile:

Settings β†’ GRASS working environment β†’ Change working directory.

what should this action do?

Call os.chdir(), Python equivalent of unix cd, i.e., change current working directory. Is this something outlandish on Windows? Try also cd command in Console.

I hadn’t seen that either, thanks for pointing this out, and a very handy feature indeed!

has this ever be tested in winGRASS?

Tested and used at least in classrooms.

how could this be tested?

Any module with import, export, read, or save file will use the current working directory when a filename, but no (or relative) path is specified.

Vaclav


best regards
Helmut

Sent from: http://osgeo-org.1560.x6.nabble.com/Grass-Dev-f3991897.html


grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev


grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

On Mon, Dec 14, 2020 at 10:09 AM Paulo van Breugel
<p.vanbreugel@gmail.com> wrote:

On Mon, Dec 14, 2020 at 5:11 AM Vaclav Petras <wenzeslaus@gmail.com> wrote:

On Fri, Dec 11, 2020 at 5:32 PM Helmut Kudrnovsky <hellik@web.de> wrote:

Settings β†’ GRASS working environment β†’ Change working directory.

what should this action do?

Call os.chdir(), Python equivalent of unix cd, i.e., change current working directory. Is this something outlandish on Windows? Try also cd command in Console.

I hadn't seen that either, thanks for pointing this out, and a very handy feature indeed!

Shall this be added to the user manual? Edits welcome :slight_smile:

Markus