📗
Windows 96 Developer Documentation
  • Welcome
  • information
    • Important notes
      • Prerequisites
      • Best practices
      • Deprecated APIs
    • API typings
  • Getting Started
    • Creating your first app
    • Some examples
      • 1. A very basic app
  • API USAGE
    • GUI
      • Creating a window
  • API
    • File System
  • WRT
    • Introduction
    • The module system
    • API reference
      • WRTEnvEnum
      • WRTParameters
Powered by GitBook
On this page

Was this helpful?

  1. WRT
  2. API reference

WRTParameters

This is a pseudo object used in the documentation to describe the parameters one can specify when using w96.WRT.run or w96.WRT.runFile

A WRTParameters object should look something like this:

{
    include: null,
    cwd: "c:/user",
    scriptDir: "<anonymous>",
    modulePath: "<anonymous>",
    envType: "normal",
    boxedEnv: null,
    cachedModules: {},
}

All of the parameters inside this object are optional.

Field

Type

Description

include

Function

The include function to use for this context. Automatically assigned by WRT.

cwd

String

The working directory of the script. It is set to the user home directory by default, but is set to the script path's start directory when invoked via w96.WRT.runFile

scriptDir

String

The startup directory of the script.

moduleDir

String

The directory where the current script/module is contained.

envType

The environment where this script should be executed.

boxedEnv

Object

An object to pass to the execution environment.

cachedModules

Object

The cached modules for this script. Automatically assigned by WRT.

PreviousWRTEnvEnum

Last updated 3 years ago

Was this helpful?

WRTEnvEnum