support that the windows service wrapper executable itself is available on the PATH

git-svn-id: https://svn.kenai.com/svn/winsw~subversion/trunk@7 c8b2a3fe-9b5b-6a51-a37e-dc31b0e308fa
remotes/git-svn
jjasper4 2008-11-08 20:07:19 +00:00
parent cee2f0a19e
commit d51e11a7a4
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ namespace winsw
// this returns the executable name as given by the calling process, so // this returns the executable name as given by the calling process, so
// it needs to be absolutized. // it needs to be absolutized.
string p = Environment.GetCommandLineArgs()[0]; string p = Environment.GetCommandLineArgs()[0];
return Path.Combine(Environment.CurrentDirectory, p); return Path.Combine(AppDomain.CurrentDomain.BaseDirectory, p);
} }
} }