<s> from SimpleCV import * <EOL> import re <EOL> from types import NoneType <EOL> easy_installed_pkgs = dict ( ) <EOL> easy_installed_path = "<STR_LIT>" ; <EOL> for k in sys . modules . keys ( ) : <EOL> if type ( sys . modules [ k ] ) == NoneType : <EOL> continue <EOL> fn = "<STR_LIT>" <EOL> try : <EOL> fn = sys . modules [ k ] . __file__ <EOL> except : <EOL> continue <EOL> if ( re . match ( easy_installed_path , fn ) ) : <EOL> junk , relpath = re . split ( easy_installed_path , fn ) <EOL> dirs = re . split ( "<STR_LIT:/>" , relpath ) <EOL> easy_installed_pkgs [ dirs [ <NUM_LIT:1> ] ] = <NUM_LIT:1> <EOL> for egg in easy_installed_pkgs . keys ( ) : <EOL> print easy_installed_path + "<STR_LIT:/>" + egg </s>
