diff --git a/AutoWeightServer/Model/Config/ServerConfig.cs b/AutoWeightServer/Model/Config/ServerConfig.cs index c1501b1..e2ae57f 100644 --- a/AutoWeightServer/Model/Config/ServerConfig.cs +++ b/AutoWeightServer/Model/Config/ServerConfig.cs @@ -1,4 +1,5 @@ -using System; +using EC.Utils; +using System; using System.IO; namespace EC.AutoWeightServer.Model.Config @@ -44,7 +45,7 @@ namespace EC.AutoWeightServer.Model.Config public static string LightRelayCom { get; } = GetAppConfig("Light_Relay_COM"); public static int LightRelayBaudRate { get; } = FormatCom.ToInt(GetAppConfig("Light_Relay_BaudRate")); - public static string LightCodeName { get; } = Path.Combine(Environment.CurrentDirectory, "conf", GetAppConfig("Light_Code_Name")); + public static string LightCodeName { get; } = Path.Combine(CommonUtil.GetWorkDirectory(), "conf", GetAppConfig("Light_Code_Name")); public static int LightInterval { get; } = FormatCom.ToInt(GetAppConfig("Light_Interval")); public static int LightBlink { get; } = FormatCom.ToInt(GetAppConfig("Light_Blink"));