mirror of https://github.com/winsw/winsw
Fix needing to call install command from same directory.
parent
f4c11569cb
commit
76de18b744
|
@ -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);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue