summaryrefslogtreecommitdiffstats
path: root/slic3r
diff options
context:
space:
mode:
Diffstat (limited to 'slic3r')
-rwxr-xr-xslic3r5
1 files changed, 3 insertions, 2 deletions
diff --git a/slic3r b/slic3r
index d00a7c4..6683b92 100755
--- a/slic3r
+++ b/slic3r
@@ -5,10 +5,11 @@ gitdir="$HOME/git/Slic3r"
#merged="$HOME/.Slic3r/config.ini.merged"
#truncate -s 0 "$merged"
-TMPDIR="`mktemp -d "/tmp/slic3r.XXXXXX"`"
-locallib="$TMPDIR/local-lib-dir"
+TMPDIR="$(mktemp -d "/tmp/${0##*/}.XXXXXX")"
trap "rm -rf '${TMPDIR}'" EXIT TERM
+locallib="$TMPDIR/local-lib-dir"
+
# I don't want to install the libs
mkdir -p "$locallib"
ln -sr "$gitdir/xs/blib/lib/Slic3r/" "$locallib/Slic3r"