io.files.temp.unix: allowing TMPDIR to override /tmp.

char-rename
John Benediktsson 2016-11-08 21:37:51 -08:00
parent deac792fc7
commit 3cc16ccd9e
1 changed files with 4 additions and 2 deletions

View File

@ -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 ;