#3537: Add functionalities –tmp-location and –no-clean -----------------------------+------------------------------------------ Reporter: radeknovotny94 | Owner: grass-dev@… Type: enhancement | Status: new Priority: normal | Milestone: 7.6.0 Component: Startup | Version: svn-trunk Resolution: | Keywords: tmp-location, no-clean, exec CPU: All | Platform: All -----------------------------+------------------------------------------
Comment (by radeknovotny94): Replying to [comment:1 wenzeslaus]: > Thumbs up for creating a `find_tmp()` function, but you replaced\\ > ...\\ > Note esp. the for loop and the test using try. I looked at it again and I think that finally is all new function {{{find_tmp}}} unnecessary. Because it is set environmental variable TMPDIR at the end of function {{{create_tmp}}}. {{{ # promoting the variable even if it was not defined before os.environ['TMPDIR'] = tmpdir }}} It means that TMPDIR have to be defined when we call function for creating temporary location. {{{ gisdbase = os.getenv('TMPDIR') }}} -- Ticket URL: <https://trac.osgeo.org/grass/ticket/3537#comment:3> GRASS GIS <https://grass.osgeo.org>
_______________________________________________ grass-dev mailing list grass-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/grass-dev