def make_environment_relocatable(home_dir):
home_dir, lib_dir, inc_dir, bin_dir = path_locations(home_dir)<EOL>activate_this = os.path.join(bin_dir, '<STR_LIT>')<EOL>if not os.path.exists(activate_this):<EOL><INDENT>logger.fatal(<EOL>'<STR_LIT>'<EOL>'<STR_LIT>' % activate_this)<EOL><DEDENT>fixup_scripts(home_dir, bin_dir)<EOL>fixup_pth_and_egg_link(home_dir)<EOL>
Makes the already-existing environment use relative paths, and takes out
the #!-based environment selection in scripts.