@@ -35,6 +35,9 @@ public final class Context {
35
35
/// Command-line arguments
36
36
public let commandLineArguments : [ String ]
37
37
38
+ /// Initial home path used by the LispKit file system
39
+ public let initialHomePath : String ?
40
+
38
41
/// A delegate object which receives updates related to the virtual machine managed by
39
42
/// this context. The virtual machine also delegates some functionality to this object.
40
43
public var delegate : ContextDelegate ?
@@ -100,6 +103,7 @@ public final class Context {
100
103
implementationName: String ? = nil ,
101
104
implementationVersion: String ? = nil ,
102
105
commandLineArguments: [ String ] ? = nil ,
106
+ initialHomePath: String ? = nil ,
103
107
includeInternalResources: Bool = true ,
104
108
includeDocumentPath: String ? = " LispKit " ,
105
109
delegate: ContextDelegate ? = nil ) {
@@ -108,6 +112,7 @@ public final class Context {
108
112
self . implementationName = implementationName ?? Context . implementationName
109
113
self . implementationVersion = implementationVersion ?? Context . implementationVersion
110
114
self . commandLineArguments = commandLineArguments ?? CommandLine . arguments
115
+ self . initialHomePath = initialHomePath
111
116
self . console = console
112
117
self . heap = Heap ( )
113
118
self . fileHandler = FileHandler ( includeInternalResources: includeInternalResources,
0 commit comments