Skip to content

Commit 74d535f

Browse files
committed
Fix mac pack issue
1 parent 1cb019d commit 74d535f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/protect_code2.pt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ def protect_pytransform():
2424
value = sum(buf)
2525
sys = __import__('sys')
2626
if hasattr(sys, 'frozen') and sys.platform == 'darwin':
27-
value += 4100
27+
ver = sys.version_info
28+
value += -763 if ver.major == 2 else 4100 ver.minor == 7 else 2639
2829
if value not in {checklist}:
2930
raise RuntimeError('unexpected %s' % filename)
3031

0 commit comments

Comments
 (0)