Wolfram Language & System 12.1 (2020)|Legacy Documentation
This is documentation for an earlier version of Wolfram Language.View current documentation (Version 14.3)
InitializationObjects
gives the list of all persistent initialization objects in all locations in $PersistencePath.
InitializationObjects["patt"]
gives all persistent initialization objects for symbols matching the string pattern "patt".
InitializationObjects["patt",loc]
gives all matching persistent initialization objects in the persistence location loc.
InitializationObjects["patt",{loc1,…}]
gives all matching persistent initialization objects in all the loci.
Details and Options

- InitializationObjects has the option EvaluationEnvironment, which specifies for which evaluation environment initialization objects should be given. The default setting is EvaluationEnvironment:>$EvaluationEnvironment.
- In InitializationObjects["patt",loc], possible forms for the persistence location loc include:
-
PersistenceLocation["type"] "Local", "Cloud", "FrontEndSession", etc. locations "type" equivalent to PersistenceLocation["type"] PersistenceLocation["type","base"] location with a particular base (directory etc.) "type""base" equivalent to PersistenceLocation["type","base"] - InitializationObjects[All,loc] gives all objects in the location or locations loc.
- The result of InitializationObjects is a list of the form {sym1->{obj1,…},…}, where the list of objects contains all persistent objects that contain an initialization for the symbol sym1.
Examples
open allclose allScope (2)
List all initializations in a particular persistence location:
List all initializations for a particular symbol in all persistence locations on $PersistencePath:
Introduced in 2017
(11.2)
|
Updated in 2019 (12.0)