Skip to content

Commit 2c949de

Browse files
committed
Add PreferenceFilePath to ExecutionSession
1 parent 702c7f8 commit 2c949de

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

src/DynamoCore/Configuration/ExecutionSession.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System;
1+
using System;
22
using System.Collections.Generic;
33
using System.IO;
44
using Dynamo.Interfaces;
@@ -26,6 +26,7 @@ public ExecutionSession(Scheduler.UpdateGraphAsyncTask updateTask, DynamoModel m
2626
parameters[ParameterKeys.LastExecutionDuration] = new TimeSpan(updateTask.ExecutionEndTime.TickCount - updateTask.ExecutionStartTime.TickCount);
2727
parameters[ParameterKeys.PackagePaths] = pathManager.PackagesDirectories;
2828
parameters[ParameterKeys.Logger] = model.Logger;
29+
parameters[ParameterKeys.PreferenceFilePath] = pathManager.PreferenceFilePath;
2930
}
3031

3132
/// <summary>

src/NodeServices/ExecutionSession.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,10 @@ public class ParameterKeys
8181
/// The return value is an ILogger
8282
/// </summary>
8383
public static readonly string Logger = nameof(Logger);
84-
84+
85+
/// <summary>
86+
/// The path to the preference file that is being used by Dynamo.
87+
/// </summary>
88+
public static readonly string PreferenceFilePath = nameof(PreferenceFilePath);
8589
}
8690
}

0 commit comments

Comments
 (0)