Add debug information for locating a users data directory

This commit is contained in:
Henrik Brix Andersen 2012-06-21 13:21:42 +02:00
parent c4f8c36ecc
commit f2617bffda

View File

@ -37,6 +37,7 @@ sub OnInit {
# locate or create data directory
$datadir = Wx::StandardPaths::Get->GetUserDataDir;
Slic3r::debugf "Data directory: %s\n", $datadir;
for ($datadir, "$datadir/print", "$datadir/filament", "$datadir/printer") {
mkdir or $self->fatal_error("Slic3r was unable to create its data directory at $_ (errno: $!).")
unless -d $_;