How to execute scons in a python3 environment?

后端 未结 4 1003
天命终不由人
天命终不由人 2021-01-11 16:58

I need to import python3 scripts within a scons script. (I use scons v3.0.1.7)

Is there a way to execute scons with python 3 ?

The offical scons site says

4条回答
  •  粉色の甜心
    2021-01-11 17:12

    Here is a better solution, add this to your .bash_profile:

    alias scons3="/usr/bin/env python3 $(which scons)" 
    

提交回复
热议问题