class Bake::Context

def self.load(path = Dir.pwd)

@path [String] A file-system path.
Load a context from the specified path.
def self.load(path = Dir.pwd)
	if bakefile_path = self.bakefile_path(path)
		scope = Scope.load(bakefile_path)
		
		working_directory = File.dirname(bakefile_path)
		loaders = Loaders.default(working_directory)
	else
		scope = nil
		
		working_directory = path
		loaders = Loaders.default(working_directory)
	end
	
	return self.new(loaders, scope, working_directory)
end