Fixed AZ::Utils::GetHomeDirectory function for non-Windows platforms (#821)

* Fixed AZ::Utils::GetHomeDirectory function for non-Windows platforms

* Adding back missing path variable

* Fix typo in homePath variable
This commit is contained in:
lumberyard-employee-dm
2021-05-19 18:05:29 -05:00
committed by GitHub
parent 1a0bf32f42
commit 73335c7160
2 changed files with 2 additions and 6 deletions
@@ -41,10 +41,6 @@ namespace AZ
if (const char* homePath = std::getenv("HOME"); homePath != nullptr)
{
AZ::IO::FixedMaxPath path{homePath};
if (!path.empty())
{
path /= ".o3de";
}
return path.Native();
}
return {};