26 lines
518 B
Python
26 lines
518 B
Python
import sys
|
|
try:
|
|
import blender_addon_tester as BAT
|
|
except Exception as e:
|
|
print(e)
|
|
sys.exit(1)
|
|
|
|
def main():
|
|
if len(sys.argv) > 1:
|
|
addon = sys.argv[1]
|
|
else:
|
|
addon = "multi_user"
|
|
if len(sys.argv) > 2:
|
|
blender_rev = sys.argv[2]
|
|
else:
|
|
blender_rev = "2.93.0"
|
|
|
|
try:
|
|
exit_val = BAT.test_blender_addon(addon_path=addon, blender_revision=blender_rev)
|
|
except Exception as e:
|
|
print(e)
|
|
exit_val = 1
|
|
sys.exit(exit_val)
|
|
|
|
main()
|