From 68ef3b992674d87d0c73da9c29a4c5a0e735f04b Mon Sep 17 00:00:00 2001 From: Gareth Dunstone Date: Fri, 2 Feb 2018 15:30:11 +1100 Subject: [PATCH] python version check (#99) * detect minimum python3.2 * change for when python4.0 is (eventually) released --- faceswap.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/faceswap.py b/faceswap.py index 82e3daf064..306d85ee01 100755 --- a/faceswap.py +++ b/faceswap.py @@ -1,4 +1,10 @@ #!/usr/bin/env python3 +import sys +if sys.version_info[0] < 3: + raise Exception("This program requires at least python3.2") +if sys.version_info[0] == 3 and sys.version_info[1] < 2: + raise Exception("This program requires at least python3.2") + from lib.utils import FullHelpArgumentParser from scripts.extract import ExtractTrainingData