Merge branch 'mcode2' into pitweb

This commit is contained in:
2026-02-10 09:23:30 -06:00
3 changed files with 57 additions and 38 deletions

View File

@@ -1,4 +1,4 @@
// Hidden vars (os, actorsym, init, shop_path, analyze, run_ast_fn, json) come from env
// Hidden vars (os, actorsym, init, core_path, shop_path, analyze, run_ast_fn, json) come from env
// In actor spawn mode, also: nota, wota
var ACTORDATA = actorsym
var SYSYM = '__SYSTEM__'
@@ -53,9 +53,9 @@ function ends_with(str, suffix) {
var fd = use_embed('fd')
var js = use_embed('js')
// shop_path comes from env (bootstrap.cm passes it through)
var packages_path = shop_path + '/packages'
var core_path = packages_path + '/core'
// core_path and shop_path come from env (bootstrap.cm passes them through)
// shop_path may be null if --core was used without --shop
var packages_path = shop_path ? shop_path + '/packages' : null
var use_cache = {}
use_cache['core/os'] = os