# HG changeset patch # User Frank Benoit # Date 1257710266 -3600 # Node ID 2bcb17ebe0be91eac2ac779f2521379b2c36684b # Parent 5f6d9bb33a536cc3aeb26c3cfd9b0ebbb605f119 fix: thx torhu diff -r 5f6d9bb33a53 -r 2bcb17ebe0be dwt/dwthelper/File.d --- a/dwt/dwthelper/File.d Sat Apr 04 21:38:37 2009 +0200 +++ b/dwt/dwthelper/File.d Sun Nov 08 20:57:46 2009 +0100 @@ -8,7 +8,11 @@ static import tango.io.model.IFile; static import tango.io.FilePath; static import tango.io.Path; -static import tango.io.FileSystem; +version (TANGOSVN) { + static import tango.sys.Environment; +} else { + static import tango.io.FileSystem; +} public class File { @@ -69,7 +73,12 @@ } public String getAbsolutePath(){ - return tango.io.FileSystem.FileSystem.toAbsolute( mFilePath ).toString; + version (TANGOSVN) { + if ( mFilePath.isAbsolute ) return mFilePath.toString; + else return mFilePath.absolute( tango.sys.Environment.Environment.cwd ).toString; + } else { + return tango.io.FileSystem.FileSystem.toAbsolute( mFilePath).toString; + } } public dwt.dwthelper.File.File getAbsoluteFile(){