From 129460a2422c9b1f79f059272d5a47a71d5f2fd3 Mon Sep 17 00:00:00 2001 From: extremecoders-re Date: Sat, 17 Sep 2022 15:56:40 +0530 Subject: [PATCH] Correct major minor version check --- pyinstxtractor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyinstxtractor.py b/pyinstxtractor.py index c661301..0a8f83d 100644 --- a/pyinstxtractor.py +++ b/pyinstxtractor.py @@ -375,7 +375,7 @@ class PyInstArchive: print('[!] Warning: pyc magic of files inside PYZ archive are different from those in CArchive') # Skip PYZ extraction if not running under the same python version - if self.pymaj != sys.version_info.major or self.pymaj != self.pymaj != sys.version_info.minor: + if self.pymaj != sys.version_info.major or self.pymin != sys.version_info.minor: print('[!] Warning: This script is running in a different Python version than the one used to build the executable.') print('[!] Please run this script in Python {0}.{1} to prevent extraction errors during unmarshalling'.format(self.pymaj, self.pymin)) print('[!] Skipping pyz extraction')