“source” to set PATH to bitbake with shell=True having no effect in Python

后端 未结 4 784
花落未央
花落未央 2021-01-16 18:51

Below is the code in shell script

source /proj/common/tools/repo/etc/profile.d/repo.sh
repo project init $branch
repo project sync
source poky/fnc-init-build         


        
4条回答
  •  独厮守ぢ
    2021-01-16 19:51

    You need to add the path to 'bitbake', so it is found from your python script.

    sys.path.append(your_path_there)
    

提交回复
热议问题