Skip to content

Commit 0c38307

Browse files
committed
Rpevent running script on python 2.7, add warning on python 3.11
1 parent e774623 commit 0c38307

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

build.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,13 @@ def save(self):
240240
with open(LastModifiedManager.savePath, 'w') as handle:
241241
json.dump(self.lastModifiedDict, handle)
242242

243+
if sys.version_info < (2, 7):
244+
print(">>>> ERROR: This script does not work on Python 2.7")
245+
exit(-1)
246+
247+
if sys.version_info > (3, 10):
248+
print(">>>> WARNING: This script probably does not work on Python 3.11 because unitypack uses old version of decrunch which does not build. Use Python 3.10 or below if you have this error.")
249+
243250
lastModifiedManager = LastModifiedManager()
244251

245252
# Parse command line arguments

0 commit comments

Comments
 (0)