how to get the present working directory in C# code example
Example 1: c# get current directory
string currentDir = System.IO.Directory.GetCurrentDirectory();
//returns the current directory of the application when executing
Example 2: c# get script directory
string appPath = System.IO.Path.GetDirectoryName(Application.ExecutablePath);