From 6ec1dbef60d740748594a8d0eb67d180ba7cf4a2 Mon Sep 17 00:00:00 2001 From: Watson Date: Sat, 16 Nov 2013 10:32:04 +0900 Subject: [PATCH] change library load path for benchmark suite --- test/Benchmark/Rakefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/Benchmark/Rakefile b/test/Benchmark/Rakefile index 8ccac47b..1e0b69d3 100644 --- a/test/Benchmark/Rakefile +++ b/test/Benchmark/Rakefile @@ -1,6 +1,10 @@ # -*- coding: utf-8 -*- version = ENV['version'] || '' -$:.unshift("/Library/RubyMotion#{version}/lib") +if version != '' + $:.unshift("/Library/RubyMotion#{version}/lib") +else + $:.unshift("../../lib") +end platform = ENV['platform'] || 'osx' require "motion/project/template/#{platform}"