---
name: "al_set_exe_name"
section: "3alleg5"
platform: "linux"
package: "allegro5-doc"
version: "2:5.2.10.1+dfsg-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/al_set_exe_name/3alleg5"
---

# al\_set\_exe\_name(3alleg5)

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(3alleg5) 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(3alleg5)
