Skip to content

Commit 553863c

Browse files
committed
Moved Python3.8 version check into module that imports shlex
1 parent f9e749d commit 553863c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/TranscodeSession.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,5 +168,8 @@ def cleanup(self):
168168
except FileNotFoundError:
169169
print("Session.cleanup():", self.path["log"], "does not exist.")
170170

171-
if __name__ == "__main__":
171+
# Check for Python 3.8 (required for shlex usage)
172+
if not (sys.version_info[0] >= 3 and sys.version_info[1] >= 8):
173+
sys.exit("\nFATAL: Requires Python3.8 or newer.\n")
174+
elif __name__ == "__main__":
172175
sys.exit("I am a module, not a script.")

0 commit comments

Comments
 (0)