def force_global_eggs_after_local_site_packages():
egginsert = getattr(sys, '<STR_LIT>', <NUM_LIT:0>)<EOL>for i, path in enumerate(sys.path):<EOL><INDENT>if i > egginsert and path.startswith(sys.prefix):<EOL><INDENT>egginsert = i<EOL><DEDENT><DEDENT>sys.__egginsert = egginsert + <NUM_LIT:1><EOL>
Force easy_installed eggs in the global environment to get placed
in sys.path after all packages inside the virtualenv.  This
maintains the "least surprise" result that packages in the
virtualenv always mask global packages, never the other way
around.