From: <jh...@us...> - 2010-01-05 01:24:05
|
Revision: 187 http://etch.svn.sourceforge.net/etch/?rev=187&view=rev Author: jheiss Date: 2010-01-05 01:23:56 +0000 (Tue, 05 Jan 2010) Log Message: ----------- Fix setting of CLIENTDIR and SERVERDIR to better handle relative paths. Modified Paths: -------------- trunk/test/etchtest.rb Modified: trunk/test/etchtest.rb =================================================================== --- trunk/test/etchtest.rb 2009-12-17 04:36:21 UTC (rev 186) +++ trunk/test/etchtest.rb 2010-01-05 01:23:56 UTC (rev 187) @@ -8,8 +8,8 @@ module EtchTests # Roughly ../server and ../client - SERVERDIR = "#{File.dirname(File.dirname(__FILE__))}/server" - CLIENTDIR = "#{File.dirname(File.dirname(__FILE__))}/client" + SERVERDIR = "#{File.dirname(File.dirname(File.expand_path(__FILE__)))}/server" + CLIENTDIR = "#{File.dirname(File.dirname(File.expand_path(__FILE__)))}/client" # Haven't found a Ruby method for creating temporary directories, # so create a temporary file and replace it with a directory. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |