diff --git a/src/DynamoApplications/StartupUtils.cs b/src/DynamoApplications/StartupUtils.cs index 370fb77928f..0302c322484 100644 --- a/src/DynamoApplications/StartupUtils.cs +++ b/src/DynamoApplications/StartupUtils.cs @@ -193,8 +193,16 @@ public static void PreloadShapeManager(ref string geometryFactoryPath, ref strin public static DynamoModel MakeCLIModel(CommandLineArguments cmdLineArgs) { var asmPath = String.IsNullOrEmpty(cmdLineArgs.ASMPath) ? string.Empty : cmdLineArgs.ASMPath; - IPathResolver pathResolver = CreatePathResolver(false, string.Empty, string.Empty, string.Empty); + + IPathResolver pathResolver = CreatePathResolver(true, string.Empty, cmdLineArgs.UserDataFolder, cmdLineArgs.CommonDataFolder); PathManager.Instance.AssignHostPathAndIPathResolver(string.Empty, pathResolver); + + if (!File.Exists(PathManager.Instance.PreferenceFilePath)) + { + pathResolver = CreatePathResolver(true, string.Empty, string.Empty, cmdLineArgs.CommonDataFolder); + PathManager.Instance.AssignHostPathAndIPathResolver(string.Empty, pathResolver); + } + DynamoModel.SetUICulture(PreferenceSettings.Instance.Locale); DynamoModel.OnDetectLanguage();