mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-20 23:58:43 -04:00
AP_Scripting: scripting directory configuration for posix IO
ensure SITL uses ./scripts
This commit is contained in:
parent
da74370fdd
commit
628b000ace
@ -3,11 +3,12 @@
|
||||
#include <AP_HAL/AP_HAL_Boards.h>
|
||||
|
||||
#ifndef SCRIPTING_DIRECTORY
|
||||
#if HAL_OS_FATFS_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_FATFS_IO
|
||||
#endif // HAL_OS_FATFS_IO || HAL_OS_LITTLEFS_IO
|
||||
#endif // SCRIPTING_DIRECTORY
|
||||
|
||||
int lua_get_current_env_ref();
|
||||
|
Loading…
Reference in New Issue
Block a user