Skip to content

Commit

Permalink
python version check (deepfakes#99)
Browse files Browse the repository at this point in the history
* detect minimum python3.2

* change for when python4.0 is (eventually) released
  • Loading branch information
gdunstone authored Feb 2, 2018
1 parent c529bd4 commit 68ef3b9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions faceswap.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 68ef3b9

Please sign in to comment.