Config: HOTFIX: dont do a write check for computer config and only create if not exists yet
This commit is contained in:
parent
5658c233ee
commit
89f45c37c5
@ -114,11 +114,13 @@ Public Class ConfigManager(Of T)
|
|||||||
_UserConfigPath = Path.Combine(_UserDirectory, USER_CONFIG_NAME)
|
_UserConfigPath = Path.Combine(_UserDirectory, USER_CONFIG_NAME)
|
||||||
|
|
||||||
If ComputerConfigPath <> String.Empty Then
|
If ComputerConfigPath <> String.Empty Then
|
||||||
_ComputerDirectory = _File.CreateDirectory(ComputerConfigPath)
|
If IO.File.Exists(ComputerConfigPath) Then
|
||||||
|
_ComputerDirectory = _File.CreateDirectory(ComputerConfigPath, False)
|
||||||
|
End If
|
||||||
_ComputerConfigPath = Path.Combine(_ComputerDirectory, COMPUTER_CONFIG_NAME)
|
_ComputerConfigPath = Path.Combine(_ComputerDirectory, COMPUTER_CONFIG_NAME)
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If ApplicationStartupPath <> String.Empty Then
|
If ApplicationStartupPath <> String.Empty Then
|
||||||
_Logger.Debug($"AppConfig is being used: [{ApplicationStartupPath}]")
|
_Logger.Debug($"AppConfig is being used: [{ApplicationStartupPath}]")
|
||||||
_AppConfigPath = Path.Combine(ApplicationStartupPath, APP_CONFIG_NAME)
|
_AppConfigPath = Path.Combine(ApplicationStartupPath, APP_CONFIG_NAME)
|
||||||
End If
|
End If
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user