@@ -35,6 +35,9 @@ public final class Context {
3535 /// Command-line arguments
3636 public let commandLineArguments : [ String ]
3737
38+ /// Initial home path used by the LispKit file system
39+ public let initialHomePath : String ?
40+
3841 /// A delegate object which receives updates related to the virtual machine managed by
3942 /// this context. The virtual machine also delegates some functionality to this object.
4043 public var delegate : ContextDelegate ?
@@ -100,6 +103,7 @@ public final class Context {
100103 implementationName: String ? = nil ,
101104 implementationVersion: String ? = nil ,
102105 commandLineArguments: [ String ] ? = nil ,
106+ initialHomePath: String ? = nil ,
103107 includeInternalResources: Bool = true ,
104108 includeDocumentPath: String ? = " LispKit " ,
105109 delegate: ContextDelegate ? = nil ) {
@@ -108,6 +112,7 @@ public final class Context {
108112 self . implementationName = implementationName ?? Context . implementationName
109113 self . implementationVersion = implementationVersion ?? Context . implementationVersion
110114 self . commandLineArguments = commandLineArguments ?? CommandLine . arguments
115+ self . initialHomePath = initialHomePath
111116 self . console = console
112117 self . heap = Heap ( )
113118 self . fileHandler = FileHandler ( includeInternalResources: includeInternalResources,
0 commit comments