Public Base

·

1 min read

installer=stuphos.language.installer
package=python_transpile

--admin-script $installer._objectToFile \
-x $installer.OBJECT_TO_PATH \
-x scripts/install-object.ela

-f scripts/install-object.ela $installer.INSTALL install-path.ela

-f scripts/install-object.ela $package.encapsule.NATIVE_INSTALL install/native
-c "return eval('install/native/runContext'(['base/public'], compile(Official())))"

cat > install-base.ela < "
def public(method):
'public/message'('[spawning#tracking] %s' % method)
return act(method, args$slice(1), keywords$())
"

--admin-script $installer._objectToFile \
-x $installer.INSTALL \
-x scripts/install-path.ela

-f scripts/install-path.ela base install-base.ela

cat > install-manager.ela < "
def user$kernel(method):
try: checkAccess(['random:permission'], 'intercepted')
except: return act(method, args$slice(1), keywords$())
"

-f scripts/install-path.ela interface/manager install-manager.ela

-c "return runContext'(['interface/manager/user$kernel'], compile('kernel/callObject$'('sys.stdin.read')))"