18 lines
438 B
Python
Executable File
18 lines
438 B
Python
Executable File
#!/usr/bin/env python3
|
|
|
|
# set server timezone in UTC before time module imported
|
|
__import__('os').environ['TZ'] = 'UTC'
|
|
import os
|
|
|
|
# Conditionally enable remote debugging
|
|
if os.environ.get("ODOO_DEBUGPY", "0") == "1":
|
|
import debugpy
|
|
debugpy.listen(("0.0.0.0", 5678))
|
|
print("✅ Waiting for VS Code debugger to attach on port 5678...")
|
|
debugpy.wait_for_client()
|
|
|
|
import odoo
|
|
|
|
if __name__ == "__main__":
|
|
odoo.cli.main()
|