Fix needing to call install command from same directory.

pull/76/head
Nicholas Carpenter 2015-01-31 22:51:44 -05:00
parent f4c11569cb
commit 76de18b744
1 changed files with 1 additions and 2 deletions

View File

@ -36,8 +36,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(AppDomain.CurrentDomain.BaseDirectory, p); return Path.GetFullPath(p);
} }
} }