Skip to content

Commit

Permalink
AP_Scripting: ensure SITL uses ./scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
andyp1per committed Jan 5, 2025
1 parent 589ac73 commit cf761f7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions libraries/AP_Scripting/lua_common_defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@
#include <AP_HAL/AP_HAL_Boards.h>

#ifndef SCRIPTING_DIRECTORY
#if HAL_OS_POSIX_IO
// can't use HAL_OS_POSIX_IO here ebcause SITL assumes no APM prefix
#if HAL_OS_FATFS_IO || HAL_OS_LITTLEFS_IO
#define SCRIPTING_DIRECTORY "/APM/scripts"
#else
#define SCRIPTING_DIRECTORY "./scripts"
#endif //HAL_OS_POSIX_IO
#endif // HAL_OS_FATFS_IO || HAL_OS_LITTLEFS_IO
#endif // SCRIPTING_DIRECTORY

int lua_get_current_env_ref();
Expand Down

0 comments on commit cf761f7

Please sign in to comment.