Check platform correctly

Continue if running on win32.
Exit if running on other platforms.
This commit is contained in:
YOUSIKI 2019-11-30 22:56:34 +08:00 committed by GitHub
parent 65cc4c6afb
commit aa7c0b3f12
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -326,7 +326,7 @@ if __name__ == '__main__':
start_time = time.time()
# check platform
if sys.platform == 'win32':
if sys.platform != 'win32':
print('This script is currently only compatible with Windows')
EXIT_CODE = 1
sys.exit(1)