Skip to main content

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

FieldValue
DisplayGet Process Paths
Categorysystem
AccessPublic
ScopeB1Standalone
TagsExperimental
Aliases—

Parameters

  • This command takes no parameters.

Returns

Returns a JSON object with the following fields:

FieldTypeRequiredDescription
executable_pathstringyesAbsolute path of the running executable
executable_namestringyesExecutable file name including extension
binary_dirstringyesAbsolute directory containing the executable
process_idintyesOS process id of the running game
project_namestringyesUnreal project name
project_dirstringyesAbsolute project root directory
saved_dirstringyesAbsolute Saved directory (may be redirected to the user directory in installed builds)
config_dirstringyesAbsolute project Config directory
log_dirstringyesAbsolute directory holding the log files
log_filestringyesAbsolute path of the log file currently being written, honouring any -log= override
screenshot_dirstringyesAbsolute directory the engine writes screenshots to
build_configurationstringyesDebug | DebugGame | Development | Test | Shipping
build_targetstringyesGame | Editor | Client | Server | Program
platformstringyesRuntime platform name, e.g. Windows
engine_versionstringyesFull engine version string
is_editorboolyesTrue when running inside the Unreal Editor

Usage

await inzoi.cli.execute('system.get_paths');