wezterm.executable_dir

This constant is set to the directory containing the wezterm executable file.

local wezterm = require 'wezterm';
wezterm.log_error("Exe dir " .. wezterm.executable_dir)