[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'FileUtil' (#lazutils)

ProgramDirectoryWithBundle

Gets the directory for the current executable without the macOS bundle post-fix.

Declaration

Source position: fileutil.pas line 60

function ProgramDirectoryWithBundle: string;

Function result

Path to the executable without the macOS bundle post-fix.

Description

ProgramDirectoryWithBundle is a String function used to get the path to current executable on the macOS operating system. It calls ProgramDirectory to get the return value, and removes the bundle post-fix ('.app/Contents/MacOS') from the return value. The return value is not changed if it does not contain the bundle post-fix.

See also

ProgramDirectory

  

Gets the directory where the current program is located.


Version 3.2 Generated 2024-02-25 Home