winIDEA SDK
Loading...
Searching...
No Matches
require_version.py
# This script is licensed under BSD License, see file LICENSE.txt, or search for `License` in the SDK online help.
#
# (c) TASKING Germany GmbH, 2023
"""
This script demonstrates usage or asserting that version being used
is still compatible with newer versions of our products.
It compares version used against version passed in the parameters and
throws an error if the one used is not compatible anymore and should be updated
"""
import isystem.connect as ic
'''
Note: you cannot call this function with parameter name specified
e.g. `requires_SDK(nMajor=9, ...)` as it was translated to get
*args as the only parameter, therefore just numbers need to be passed
'''
def verify_SDK():
ic.requires_SDK(9, 21, 100)
# OR
ic.requires_SDK(9, 21, 100, 0)
# OR
ic.requires_SDK(
9, # nMajor
21, # nMinor
100, # nBuild
10, # nSubBuild
3 # nSccBuild
)
if __name__ == '__main__':
verify_SDK()