skip to Main Content

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?

2

Answers


  1. Chosen as BEST ANSWER

    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() 
    

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

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search