class Gem::Commands::ExecCommand

def set_gem_exec_install_paths

def set_gem_exec_install_paths
  home = Gem.dir
  ENV["GEM_PATH"] = ([home] + Gem.path).join(File::PATH_SEPARATOR)
  ENV["GEM_HOME"] = home
  Gem.clear_paths
end