Files
odoo_source/oe
T
Дмитро Катюха 7d12d4aaa1 Fixed bug in 'oe' script when passing no arguments
When no arguments passed to 'oe' script next exception was thrown:

```
Traceback (most recent call last):
  File "./oe", line 5, in <module>
    if sys.argv[1] == 'run-tests':
IndexError: list index out of range
```
2014-05-19 15:06:59 +03:00

9 lines
205 B
Python
Executable File

#! /usr/bin/env python2
if __name__ == '__main__':
import sys
if len(sys.argv) > 1 and sys.argv[1] == 'run-tests':
sys.exit(0)
import openerpcommand.main
openerpcommand.main.run()