diff --git a/examples/filesystem/01_paths/paths.cpp b/examples/filesystem/01_paths/paths.cpp index 8c28d19..76e550b 100644 --- a/examples/filesystem/01_paths/paths.cpp +++ b/examples/filesystem/01_paths/paths.cpp @@ -18,8 +18,6 @@ int main( int argc, char** argv ) QCoreApplication::setApplicationName( QStringLiteral( CMLIB_PROJECT_NAME ) ); MF::Paths& paths = MF::Paths::instance(); - paths.init(); - qDebug() << "prefixDirectory : " << paths.projectDirectory(); qDebug() << "executableName : " << paths.executableName(); diff --git a/src/myx/filesystem/paths.cpp b/src/myx/filesystem/paths.cpp index d94273e..c60ee1e 100644 --- a/src/myx/filesystem/paths.cpp +++ b/src/myx/filesystem/paths.cpp @@ -22,6 +22,9 @@ MYXLIB_INLINE Paths::Paths() : m_executableName = currentExecutable.fileName(); m_executableFilePath = currentExecutable.absoluteFilePath(); m_executableDirectory = currentExecutable.absolutePath(); + + // Инициализация значениями по умолчанию + init(); }