When sys.prefix or sys.exec_prefix are the root directory, the reported directory is a null string instead of "/". This causes site.py to fail as described in bug 713601. This patch to Modules/getpath.c inserts a SEP character into the string if it is empty. It should work fine on any unix, but I don't have any python experience on the windows side...