From 2bf9e858a94c7caca41812d644543e61ba1c179e Mon Sep 17 00:00:00 2001 From: Kohsuke Kawaguchi Date: Thu, 2 Apr 2015 19:53:35 -0700 Subject: [PATCH] %BASE% was broken I haven't pinned down which change caused this, but `%BASE%` was supposed to point to a directory and not the executable. --- ServiceDescriptor.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ServiceDescriptor.cs b/ServiceDescriptor.cs index 1263087..1084f82 100755 --- a/ServiceDescriptor.cs +++ b/ServiceDescriptor.cs @@ -67,7 +67,7 @@ namespace winsw dom.Load(BasePath + ".xml"); // register the base directory as environment variable so that future expansions can refer to this. - Environment.SetEnvironmentVariable("BASE", p); + Environment.SetEnvironmentVariable("BASE", d.FullName); // ditto for ID Environment.SetEnvironmentVariable("SERVICE_ID", Id); Environment.SetEnvironmentVariable("WINSW_EXECUTABLE", ExecutablePath);