[GRASS-dev] [GRASS GIS] #3537: Add functionalities –tmp-location and –no-clean
GRASS GIS
trac at osgeo.org
Sat Mar 31 09:00:45 PDT 2018
#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>
More information about the grass-dev
mailing list