    # File lib/chef/provider/package/easy_install.rb, line 69
            def load_current_resource
              @current_resource = Chef::Resource::Package.new(@new_resource.name)
              @current_resource.package_name(@new_resource.package_name)
              @current_resource.version(nil)

              # get the currently installed version if installed
              package_version = nil
              if install_check(module_name)
                begin
                  output = shell_out!("#{python_binary_path} -c \"import #{module_name}; print #{module_name}.__version__\"").stdout
                  package_version = output.strip
                rescue
                  output = shell_out!("#{python_binary_path} -c \"import sys; print sys.path\"", :returns=>[0,1]).stdout

                  output_array = output.gsub(/[\[\]]/,'').split(/\s*,\s*/)
                  package_path = ""

                  output_array.each do |entry|
                    if entry.downcase.include?(@new_resource.package_name)
                      package_path = entry
                    end
                  end

                  package_path[/\S\S(.*)\/(.*)-(.*)-py(.*).egg\S/]
                  package_version = $3
                end
              end

              if package_version == @new_resource.version
                Chef::Log.debug("#{@new_resource} at version #{@new_resource.version}")
                @current_resource.version(@new_resource.version)
              else
                Chef::Log.debug("#{@new_resource} at version #{package_version}")
                @current_resource.version(package_version)
              end

              @current_resource
            end