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
```
9 lines
205 B
Python
Executable File
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()
|