'what is the python interpreter for odoo serveur (openERP)

We use opnerp (odoo) on a linux server (debian), I want to locate the python interpreter used by the odoo daemon,

So the question is how I can change the path to my new python interpreter.

In other words, how does odoo choose its interpreter to run the modules?



Solution 1:[1]

In odoo-bin its called out like #!/usr/bin/env python3

Solution 2:[2]

Thank you @Paxmees , and the code is located in Setup/odoo , like the following :

#!/usr/bin/env python
__import__('pkg_resources').declare_namespace('odoo.addons') 
import odoo  
if __name__ == "__main__":     
   odoo.cli.main() 

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Paxmees
Solution 2 Kenly