include UID in default COMPILE_DIR

This commit is contained in:
Graham Ollis
2013-02-24 23:12:05 -05:00
parent f68a82f774
commit 22eba8d3c5

View File

@@ -47,7 +47,12 @@ sub _init {
my %config = (
INCLUDE_PATH => \@renderer_paths,
COMPILE_EXT => '.ttc',
COMPILE_DIR => ($dir || abs_path(File::Spec->tmpdir)),
# TODO maybe this should be File::Spec->catdir(File::Spec->tmpdir, $<)
COMPILE_DIR => ($dir || do {
my $dir = File::Spec->catdir(File::Spec->tmpdir, "ttr$<");
mkdir $dir;
$dir;
}),
UNICODE => 1,
ENCODING => 'utf-8',
CACHE_SIZE => 128,