1 module des.stdx.path;
2 
3 public import std.path;
4 
5 import std.file : readText, thisExePath;
6 
7 /// `buildNormalizedPath`
8 string bnPath( string[] path... )
9 { return buildNormalizedPath( path ); }
10 
11 /++ normalized path from executable dir,
12  +  no matter where the program was launched, result stable
13  +
14  +  code:
15  +      return bnPath( dirName( thisExePath ) ~ path );
16  +/
17 string appPath( string[] path... )
18 { return bnPath( dirName( thisExePath ) ~ path ); }
19 
20 /// read text from app path file
21 string readAPF( string[] path... )
22 { return readText( appPath( path ) ); }