Brushstroke Tools: Initial Version #328
@ -247,6 +247,16 @@ def copy_resources_to_dir(tgt_dir = ''):
|
||||
else:
|
||||
print("Error: % s" % err)
|
||||
|
||||
def compare_versions(v1: tuple, v2: tuple):
|
||||
""" Returns 1 when v1 > v2, 0 when v1 == v2, -1 when v1 < v2.
|
||||
"""
|
||||
for e1, e2 in zip(v1, v2):
|
||||
if e1 > e2:
|
||||
return 1
|
||||
elif e1 < e2:
|
||||
return -1
|
||||
return 0
|
||||
|
||||
def ensure_resources():
|
||||
ng_missing = set()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user