From 2aadc94b10c34fbe70493caffde28f158619f9d7 Mon Sep 17 00:00:00 2001 From: Doug Coleman Date: Wed, 16 Mar 2016 21:25:19 -0700 Subject: [PATCH] io.files.temp: Initialize symbols after the backends are loaded. Top level code sucks. --- basis/io/files/temp/temp.factor | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/basis/io/files/temp/temp.factor b/basis/io/files/temp/temp.factor index 83e8b6d281..b3540f719d 100644 --- a/basis/io/files/temp/temp.factor +++ b/basis/io/files/temp/temp.factor @@ -7,10 +7,6 @@ HOOK: default-temp-directory os ( -- path ) SYMBOL: current-temp-directory -current-temp-directory [ - default-temp-directory dup make-directories -] initialize - : temp-directory ( -- path ) current-temp-directory get ; @@ -24,10 +20,6 @@ HOOK: default-cache-directory os ( -- path ) SYMBOL: current-cache-directory -current-cache-directory [ - default-cache-directory dup make-directories -] initialize - : cache-directory ( -- path ) current-cache-directory get ; @@ -42,3 +34,11 @@ current-cache-directory [ { [ os macosx? ] [ "io.files.temp.macosx" ] } { [ os unix? ] [ "io.files.temp.unix" ] } } cond require + +\ current-temp-directory [ + default-temp-directory dup make-directories +] initialize + +\ current-cache-directory [ + default-cache-directory dup make-directories +] initialize