# HG changeset patch # User Frank Benoit # Date 1257710312 -3600 # Node ID f403c83322c3869d24b0024f87d9c24d404eb204 # Parent 8a2a24a30ea9402fa2c41f8abe37ee75c3bdb2e3 fix: thx torhu diff -r 8a2a24a30ea9 -r f403c83322c3 dwt/dwthelper/File.d --- a/dwt/dwthelper/File.d Sun Nov 08 12:26:44 2009 +0100 +++ b/dwt/dwthelper/File.d Sun Nov 08 20:58:32 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(){