Here’s two quick stories about providing native Windows support for pestle. Home Directory The first issue boiled down to our using the following code to get a user’s home directory $home = trim(`echo ~`); if(!is_dir($home)) { throw new Exception("Could not find home directory with echo ~"); } This works for the *nix family of operating systems, but doesn’t for Windows. We’ll probably end up doing something like this instead $home = trim(`echo ~`); if(!is_dir($home)) { $home = trim(`echo %HOMEPATH%`); } if(!is_dir($home)) { throw new Exception("Could not find home directory with echo ~"); } Also of note: This problem was harder […]












