1 回答
- 最新
- 投票最多
- 评论最多
0
Hi,
This is done by sudo
on your system. You can configure sudo
to stop resetting environment, or you can set the environment on the command line directly as such: PYTHONPATH=<my path> python3 <rest of your command here>
Cheers,
Michael
相关内容
- AWS 官方已更新 1 年前
- AWS 官方已更新 10 个月前
Okay thanks for the info - makes sense now that I've looked up how sudo behaves for environment variables. But that seems like a bug in how Greengrass uses sudo then - I ask for it to set a specific environment variable and it just goes poof. So if I ever wanted to override an existing environment variable using Setenv I can't do it, and that's not mentioned anywhere in the docs.
Thank you for the feedback, unfortunately we are not able to change the way that sudo behaves however we can certainly document this behavior.