1 // ProgramLocation.h 2 3 #include "StdAfx.h" 4 5 #include "ProgramLocation.h" 6 7 // #include "Windows/FileName.h" 8 #include "Common/StringConvert.h" 9 10 GetProgramFolderPath(UString & folder)11bool GetProgramFolderPath(UString &folder) 12 { 13 const char *p7zip_home_dir = getenv("P7ZIP_HOME_DIR"); 14 if (p7zip_home_dir == 0) p7zip_home_dir="./"; 15 16 folder = MultiByteToUnicodeString(p7zip_home_dir); 17 18 return true; 19 } 20 21