Changeset 341:f403c83322c3

Show
Ignore:
Timestamp:
11/08/09 14:58:32 (3 years ago)
Author:
Frank Benoit <benoit@tionex.de>
Tags:

tip

branch:
default
Message:

fix: thx torhu

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • dwt/dwthelper/File.d

    r272 r341  
    99static import tango.io.FilePath; 
    1010static import tango.io.Path; 
    11 static import tango.io.FileSystem; 
     11version (TANGOSVN) { 
     12    static import tango.sys.Environment; 
     13} else { 
     14    static import tango.io.FileSystem; 
     15
    1216 
    1317public class File { 
     
    7074 
    7175    public String getAbsolutePath(){ 
    72         return tango.io.FileSystem.FileSystem.toAbsolute( mFilePath ).toString; 
     76        version (TANGOSVN) { 
     77            if ( mFilePath.isAbsolute ) return mFilePath.toString; 
     78            else return mFilePath.absolute( tango.sys.Environment.Environment.cwd ).toString; 
     79        } else { 
     80            return tango.io.FileSystem.FileSystem.toAbsolute( mFilePath).toString; 
     81        } 
    7382    } 
    7483