git-svn-id: svn://db.shs.com.ru/pip@731 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5

This commit is contained in:
2019-02-08 14:48:41 +00:00
parent 4b2272d891
commit 08d35cbdb1
2 changed files with 6 additions and 0 deletions

View File

@@ -400,9 +400,13 @@ PIDir PIDir::home() {
s.prepend(separator);
return PIDir(s);
#else
# ifndef ESP_PLATFORM
rc = getenv("HOME");
if (rc == 0) return PIDir();
return PIDir(rc);
# else
return PIDir();
# endif
#endif
}