Skip to content

Commit

Permalink
Add startup minimum version check
Browse files Browse the repository at this point in the history
  • Loading branch information
sam210723 committed Sep 20, 2021
1 parent 524825f commit f425fd8
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/xrit-rx.py
Expand Up @@ -29,6 +29,15 @@ def __init__(self):
"├──────────────────────────────────────────────┤\n"
"│ @sam210723 vksdr.com/xrit-rx │\n"
"└──────────────────────────────────────────────┘\n")

# Initialise Colorama
colorama.init(autoreset=True)

# Check minimum Python version requirement
import sys
if sys.version_info[1] < 7:
self.log("Python v3.7 or newer is required to run xrit-rx", style="error")
exit(1)

# Set instance variables
self.demuxer = None # Demuxer class instance
Expand All @@ -38,9 +47,6 @@ def __init__(self):
self.dump_file = None # Packet output file
self.version = "1.4" # Application version

# Initialise Colorama
colorama.init(autoreset=True)

# Information dictionary
self.info = {
"GK-2A": {
Expand Down

0 comments on commit f425fd8

Please sign in to comment.