Setting the global LUA_PATH variable from C++/C?

前端 未结 7 523
说谎
说谎 2020-12-28 09:58

I\'m trying to set my global LUA_PATH variable directly from C/C++, I\'m using Lua from my iPhone applications, so my path tends does change between applications ( each iPho

7条回答
  •  死守一世寂寞
    2020-12-28 10:06

    I guess this will not be possibles since, as you metioned, for security reasons each iPhone app lives in it own sandbox.

    I think using setenv will set the environment variable only for the current process and it's children.

    And by the way: If plan to submit your app to the AppStore, (as far as i know) script languages/interpreters are fobidden by the contract you signed.

提交回复
热议问题