Skip to content

Commit

Permalink
have to check python version in __main__
Browse files Browse the repository at this point in the history
  • Loading branch information
biobootloader committed Jul 27, 2023
1 parent f5259e2 commit 81cce9a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 6 additions & 0 deletions mentat/__main__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
import sys

# check must be located before importing code that uses 3.10 features
if sys.version_info < (3, 10):
exit("Error: Python version 3.10 or higher is required.")

from mentat.app import run_cli

# This is only here so that mentat can be run with python -m mentat
Expand Down
6 changes: 0 additions & 6 deletions mentat/app.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
import sys

# check must be located before importing code that uses 3.10 features
if sys.version_info < (3, 10):
exit("Error: Python version 3.10 or higher is required.")

import argparse
import logging
import os
Expand Down

0 comments on commit 81cce9a

Please sign in to comment.