io.files.temp.unix: allowing TMPDIR to override /tmp.
parent
deac792fc7
commit
3cc16ccd9e
|
@ -1,7 +1,9 @@
|
|||
! (c)2012 Joe Groff bsd license
|
||||
USING: io.files.temp io.pathnames system xdg ;
|
||||
USING: environment io.files.temp io.pathnames sequences system
|
||||
xdg ;
|
||||
IN: io.files.temp.unix
|
||||
|
||||
M: unix default-temp-directory "/tmp/factor-temp" ;
|
||||
M: unix default-temp-directory
|
||||
"TMPDIR" os-env [ "/tmp" ] when-empty "factor-temp" append-path ;
|
||||
|
||||
M: unix default-cache-directory xdg-cache-home ".factor" append-path ;
|
||||
|
|
Loading…
Reference in New Issue