# File lib/autobuild/environment.rb, line 3
    def self.pathvar(path, varname)
        if File.directory?(path)
            oldpath = ENV[varname]
            if oldpath.nil? || oldpath.empty?
                ENV[varname] = path
            else
                ENV[varname] = "#{path}:#{oldpath}"
            end
        end
    end