---
name: "al_set_exe_name"
section: "3"
platform: "linux"
package: "allegro"
version: "5.2.11.3-2"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/al_set_exe_name"
---

# al\_set\_exe\_name(3)

Allegro 5 API

## NAME

al\_set\_exe\_name - Allegro 5 API

## SYNOPSIS

-

  ```
  #include <allegro5/allegro.h>
  void al_set_exe_name(char const *path)
  ```

## DESCRIPTION

This override the executable name used by [al\_get\_standard\_path(3)](/al_get_standard_path/3.md) for ALLEGRO\_EXENAME\_PATH and ALLEGRO\_RESOURCES\_PATH.

One possibility where changing this can be useful is if you use the Python wrapper. Allegro would then by default think that the system’s Python executable is the current executable - but you can set it to the .py file being executed instead.

## SINCE

5\.0.6, 5.1.0

## SEE ALSO

[al\_get\_standard\_path(3)](/al_get_standard_path/3.md)
