Add the python 3.6 check to all entry points
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
0e12369866
commit
13830e02c5
3
tuhi.in
3
tuhi.in
|
@ -22,6 +22,9 @@ tuhi_gui = Path('@libexecdir@', 'tuhi-gui')
|
|||
@devel@ # NOQA
|
||||
|
||||
if __name__ == '__main__':
|
||||
if sys.version_info < (3, 6):
|
||||
sys.exit('Python 3.6 or later required')
|
||||
|
||||
args = sys.argv[1:]
|
||||
tuhi = subprocess.Popen([tuhi_server] + args)
|
||||
try:
|
||||
|
|
|
@ -147,6 +147,9 @@ def gtk_style():
|
|||
|
||||
|
||||
def main(argv):
|
||||
if sys.version_info < (3, 6):
|
||||
sys.exit('Python 3.6 or later required')
|
||||
|
||||
import gettext
|
||||
import locale
|
||||
import signal
|
||||
|
|
Loading…
Reference in New Issue