This patch fixes a segfault when PATH is unset in python-wrapper.
Created attachment 200599 [details, diff] fix for segfault
This is a good patch as this also fixes the segfault symptom I (wrongly) reported in bug#280431 - crashes when python is invoked from mod_fcgid. However the patch does not build as attached: line 14 (the assignment to PATH) is missing the terminating ';'. With that fixed the patch applies, python-wrapper builds and my hgweb via mod_fcgi is back to normal. Thanks :)
Fixed in r199.