Files
tryton/bin/trytond-console
T
Cédric Krier 28b2f1129d Add console
issue8126
review47821002
2019-03-15 12:53:20 +01:00

21 lines
592 B
Python
Executable File

#!/usr/bin/env python3
# This file is part of Tryton. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.
import sys
import os
DIR = os.path.abspath(os.path.normpath(os.path.join(__file__,
'..', '..', 'trytond')))
if os.path.isdir(DIR):
sys.path.insert(0, os.path.dirname(DIR))
import trytond.commandline as commandline
from trytond.config import config
import trytond.console as console
parser = commandline.get_parser_console()
options = parser.parse_args()
config.update_etc(options.configfile)
console.run(options)