examples_sem4r/example_helper.rb in sem4r-0.1.2 vs examples_sem4r/example_helper.rb in sem4r-0.1.3

- old
+ new

@@ -1,5 +1,6 @@ +# -*- coding: utf-8 -*- # ------------------------------------------------------------------- # Copyright (c) 2009-2010 Sem4r sem4ruby@gmail.com # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -27,10 +28,10 @@ $:.unshift(cwd) unless $:.include?(cwd) require 'sem4r' include Sem4r def tmp_dirname - d = File.join( File.dirname(__FILE__), "..", "tmp" ) + d = File.expand_path( File.join( File.dirname(__FILE__), "..", "tmp" ) ) return d if File.directory?(d) if RUBY_PLATFORM.include?("linux") d = "/tmp" return d if File.directory?(d)