Index: grammalecte-cli.py ================================================================== --- grammalecte-cli.py +++ grammalecte-cli.py @@ -130,11 +130,11 @@ return (nError, cAction, vSugg) def main (): "launch the CLI (command line interface)" - if sys.version < "3.5": + if sys.version_info < (3, 5): print("Python 3.5+ required") return xParser = argparse.ArgumentParser() xParser.add_argument("-f", "--file", help="parse file (UTF-8 required!) [on Windows, -f is similar to -ff]", type=str) Index: grammalecte-server.py ================================================================== --- grammalecte-server.py +++ grammalecte-server.py @@ -318,11 +318,11 @@ if dOptions: oGCE.setOptions(dOptions) # Python version print("Python: " + sys.version) - if sys.version < "3.7": + if sys.version_info.major < (3, 7): print("Python 3.7+ required") return # Grammalecte echo("Grammalecte v{}".format(oGCE.version)) oGCE.displayOptions() Index: make.py ================================================================== --- make.py +++ make.py @@ -383,11 +383,11 @@ def main (): "build Grammalecte with requested options" print("Python: " + sys.version) - if sys.version < "3.7": + if sys.version_info < (3, 7): print("Python 3.7+ required") return xParser = argparse.ArgumentParser() xParser.add_argument("lang", type=str, nargs='+', help="lang project to generate (name of folder in /lang)") xParser.add_argument("-uc", "--use_cache", help="use data cache instead of rebuilding rules", action="store_true")