From a368d3ad8015a905c0aee873c5c10c2fad4afbdb Mon Sep 17 00:00:00 2001 From: mr Date: Wed, 17 Aug 2011 14:06:03 +0200 Subject: move data directory to folder data for A&A reasons --- lazar.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lazar.rb') diff --git a/lazar.rb b/lazar.rb index 08efcf8..89f3423 100644 --- a/lazar.rb +++ b/lazar.rb @@ -104,7 +104,7 @@ post '/?' do # create model raise OpenTox::BadRequestError.new "MIME type \"#{request.content_type}\" not supported." unless request.content_type.match(/yaml/) @id = next_id @uri = uri @id - @yaml_file = "public/#{@id}.yaml" + @yaml_file = "#{@@datadir}/#{@id}.yaml" lazar = YAML.load request.env["rack.input"].read lazar.uri = @uri value_feature_uri = File.join( @uri, "predicted", "value") -- cgit v1.2.3