# Make apifun toolbox work with Scilab 2027.0.0 - Dirty hack

**URL:** <https://scilab.discourse.group/t/make-apifun-toolbox-work-with-scilab-2027-0-0-dirty-hack/1245>\
**Category:** Atoms packages\
**Created:** [November 13, 2026, 12:45am UTC](https://scilab.discourse.group/t/make-apifun-toolbox-work-with-scilab-2027-0-0-dirty-hack/1245 "2026-11-13T00:45:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hani](https://avatars.discourse-cdn.com/v4/letter/h/ba8739/32.png) [@Hani](https://scilab.discourse.group/u/Hani)\
**Post date:** [November 13, 2026, 12:45am UTC](https://scilab.discourse.group/t/make-apifun-toolbox-work-with-scilab-2027-0-0-dirty-hack/1245/1 "2026-11-13T00:45:28Z")

</div>

The often used toolbox _apifun_ which checks input arguments in macros. It installs in 2027.0.0 but after restarting Scilab I got the error:

```auto
atomsLoad: An error occurred while loading ‘apifun-0.4.3’:
add_help_chapter: error on line #71: “add_help_chapter: invalid value for input argument #2: an existing directory is expected.”

```

_(translated from German)_

The problem is the old `SCIHOME\atoms\x64\apifun\0.4.3\etc\apifun.start` which checks for `jar/` instead for `help/`.

To workaround this issue just replace lines 29-32 of `SCIHOME\atoms\x64\apifun\0.4.3\etc\apifun.start`:

```auto
path_addchapter = pathconvert(root_tlbx+"/jar");
if ( isdir(path_addchapter) <> [] ) then
     add_help_chapter(modulename, path_addchapter, %F);
end

```

with

```auto
path_addchapter = pathconvert(root_tlbx+"/help");
if isdir(path_addchapter) then
    add_help_chapter(modulename, root_tlbx, %F);
end

```

Restart Scilab. Worked for me & will solve problems with other toolboxes using _apifun_.

Maybe one of the maintainer

- Stéphane MOTTELET
- Michael BAUDIN
- Samuel GOUGEON
- Clément DAVID

of _apifun_ could do the fix and update this useful toolbox? I opened an issue @Gitlab.

---

<div class="post-metadata">

**Author:** ![vincent.couvert](https://avatars.discourse-cdn.com/v4/letter/v/f4b2a3/32.png) [@vincent.couvert](https://scilab.discourse.group/u/vincent.couvert)\
**Post date:** [November 13, 2026, 8:38am UTC](https://scilab.discourse.group/t/make-apifun-toolbox-work-with-scilab-2027-0-0-dirty-hack/1245/2 "2026-11-13T08:38:38Z")

</div>

Hello @Hani

New apifun version, compatible with Scilab 2027.0.0, is available on ATOMS.

Best regards.

---

<div class="post-metadata">

**Author:** ![Hani](https://avatars.discourse-cdn.com/v4/letter/h/ba8739/32.png) [@Hani](https://scilab.discourse.group/u/Hani)\
**Post date:** [November 13, 2026, 5:36pm UTC](https://scilab.discourse.group/t/make-apifun-toolbox-work-with-scilab-2027-0-0-dirty-hack/1245/3 "2026-11-13T17:36:08Z")

</div>

Hello @vincent.couvert,

Thank you for your prompt response. I tried the new version on Linux on a fresh Scilab 2027.0.0 installation.

Unfortunately I received the error message after Scilab restart:

```auto
atomsLoad: The file '/home/ ... /scilab-2027.0.0/share/scilab/contrib/apifun/0.4.4/loader.sce' from (apifun - 0.4.4) does not exist or is not read accessible.

```

And the error message is precise. That’s the content of my apifun directory:

 ![grafik](https://global.discourse-cdn.com/free1/uploads/utc/original/2X/4/4e11a1008ddb476c0751490e5b095b40f3a87353.png)

`loader.sce` and `unloader.sce` is missing.
