MCPcopy Index your code
hub / github.com/python/cpython / preRun

Function preRun

Platforms/emscripten/node_entry.mjs:35–42  ·  view source on GitHub ↗
(Module)

Source from the content-addressed store, hash-verified

33
34const settings = {
35 preRun(Module) {
36 // Globally expose API object so we can access it if we raise on startup.
37 globalThis.Module = Module;
38 mountDirectories(Module);
39 Module.FS.chdir(process.cwd());
40 Object.assign(Module.ENV, process.env);
41 delete Module.ENV.PATH;
42 },
43 onRuntimeInitialized() {
44 initializeStreams(Module.FS);
45 },

Callers

nothing calls this directly

Calls 2

mountDirectoriesFunction · 0.85
cwdMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…