Skip to content

Commit

Permalink
Check if python 3 is used
Browse files Browse the repository at this point in the history
  • Loading branch information
quentinhardy committed Jan 15, 2020
1 parent 230ef0b commit d0cabc6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion odat.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-

from sys import exit,stdout,version_info
if version_info[0] < 3:
print("ERROT: Python 3 has to be used for this version of ODAT")
exit(99)

#PYTHON_ARGCOMPLETE_OK
try:
import argcomplete
Expand All @@ -16,7 +21,6 @@

import argparse, logging, platform, cx_Oracle, string, os, sys
from Utils import areEquals, configureLogging,ErrorSQLRequest, sidHasBeenGiven, anAccountIsGiven, ipOrNameServerHasBeenGiven, getCredentialsFormated
from sys import exit,stdout

from Constants import *
from Output import Output
Expand Down

0 comments on commit d0cabc6

Please sign in to comment.