Merge pull request #76 from ebsco/pathingfix

Fix needing to call install command from same directory.
pull/86/head
Oleg Nenashev 2015-02-01 14:55:33 +03:00
commit 51e64d1deb
1 changed files with 1 additions and 2 deletions

View File

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