mirror of https://github.com/winsw/winsw
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-dc31b0e308faremotes/git-svn
parent
cee2f0a19e
commit
d51e11a7a4
2
Main.cs
2
Main.cs
|
@ -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);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue