diff --git a/librtt/Rtt_LuaContext.cpp b/librtt/Rtt_LuaContext.cpp index 25591d402..93672760b 100755 --- a/librtt/Rtt_LuaContext.cpp +++ b/librtt/Rtt_LuaContext.cpp @@ -663,6 +663,13 @@ LuaContext::InitializeLuaPath( lua_State* L, const MPlatform& platform ) sysResourceDir.GetString(), coronaCardsFrameworksDir, lua_tostring( L, -1 ) ); ++numPushed; #endif +#if defined( Rtt_MAC_ENV ) + std::string res = absoluteBase.GetString(); + res = res.substr(0, res.find_last_of("/")); + lua_pushfstring( L, "%s" LUA_DIRSEP "%s" LUA_DIRSEP LUA_PATH_MARK "." Rtt_LUA_C_MODULE_FILE_EXTENSION LUA_PATHSEP "%s", + res.c_str(), "Frameworks", lua_tostring( L, -1 ) ); + ++numPushed; +#endif // Prepend pluginsBaseDir if ( pluginsBaseStr )