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
|
@devel@ # NOQA
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
if sys.version_info < (3, 6):
|
||||||
|
sys.exit('Python 3.6 or later required')
|
||||||
|
|
||||||
args = sys.argv[1:]
|
args = sys.argv[1:]
|
||||||
tuhi = subprocess.Popen([tuhi_server] + args)
|
tuhi = subprocess.Popen([tuhi_server] + args)
|
||||||
try:
|
try:
|
||||||
|
|
|
@ -147,6 +147,9 @@ def gtk_style():
|
||||||
|
|
||||||
|
|
||||||
def main(argv):
|
def main(argv):
|
||||||
|
if sys.version_info < (3, 6):
|
||||||
|
sys.exit('Python 3.6 or later required')
|
||||||
|
|
||||||
import gettext
|
import gettext
|
||||||
import locale
|
import locale
|
||||||
import signal
|
import signal
|
||||||
|
|
Loading…
Reference in New Issue