summaryrefslogtreecommitdiff
path: root/lazar.rb
diff options
context:
space:
mode:
authormr <mr@mrautenberg.de>2011-08-17 14:06:03 +0200
committermr <mr@mrautenberg.de>2011-08-17 14:06:03 +0200
commita368d3ad8015a905c0aee873c5c10c2fad4afbdb (patch)
tree3d1120f42237568f2059a19757e2d20fe7d7e761 /lazar.rb
parent7324d4503480fc0bfdf879475380ed197bcad213 (diff)
move data directory to folder data for A&A reasons
Diffstat (limited to 'lazar.rb')
-rw-r--r--lazar.rb2
1 files changed, 1 insertions, 1 deletions
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")