system.get_paths
Overview
- Returns the filesystem locations of the running game process: where its binary lives, where it writes logs, saved data and screenshots, plus the build configuration and engine version. Every path is absolute and uses forward slashes, resolved from the live process rather than guessed. Use this instead of hardcoding paths: the log and saved directories move with the build configuration (the editor writes under the project's own Saved folder, a staged Development build writes under the packaged folder, and an installed Shipping build is redirected to the per-user application data directory), and the log filename itself can be overridden with -log= on the command line. log_file is the exact file currently being appended to, so an external tool can tail it directly. screenshot_dir is where screenshot.capture drops files when given a bare filename.
Metadata
| Field | Value |
|---|---|
| Display | Get Process Paths |
| Category | system |
| Access | Public |
| Scope | B1Standalone |
| Tags | Experimental |
| Aliases | — |
Parameters
- This command takes no parameters.
Returns
Returns a JSON object with the following fields:
| Field | Type | Required | Description |
|---|---|---|---|
executable_path | string | yes | Absolute path of the running executable |
executable_name | string | yes | Executable file name including extension |
binary_dir | string | yes | Absolute directory containing the executable |
process_id | int | yes | OS process id of the running game |
project_name | string | yes | Unreal project name |
project_dir | string | yes | Absolute project root directory |
saved_dir | string | yes | Absolute Saved directory (may be redirected to the user directory in installed builds) |
config_dir | string | yes | Absolute project Config directory |
log_dir | string | yes | Absolute directory holding the log files |
log_file | string | yes | Absolute path of the log file currently being written, honouring any -log= override |
screenshot_dir | string | yes | Absolute directory the engine writes screenshots to |
build_configuration | string | yes | Debug | DebugGame | Development | Test | Shipping |
build_target | string | yes | Game | Editor | Client | Server | Program |
platform | string | yes | Runtime platform name, e.g. Windows |
engine_version | string | yes | Full engine version string |
is_editor | bool | yes | True when running inside the Unreal Editor |
Usage
await inzoi.cli.execute('system.get_paths');