From 229b55863347dc346f3ad816e38b84b456ee527c Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 7 Jan 2012 02:21:59 +0300 Subject: Use absolute path for launching tests. --- src/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index f704d68c7..1988e5962 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -39,6 +39,8 @@ #include "debug.h" +char *selfName = nullptr; + static void printHelp() { using std::endl; @@ -228,6 +230,8 @@ int main(int argc, char *argv[]) LoadLibrary("exchndl.dll"); #endif + selfName = argv[0]; + // Parse command line options Client::Options options; parseOptions(argc, argv, options); -- cgit v1.2.3-70-g09d2