controller.py
383 Bytes
# -*- coding: UTF-8 -*-
from os import getcwd
from subprocess import call
from sys import argv, path
path.append(getcwd())
from pyutil import printStackTrace
blend = "avatar_Hozana_wikiLibras.blend"
main = "libras.py"
if (len(argv) > 1):
try:
call(["blender", "-b", blend, "-P", main, argv[1]])
exit(0)
except:
printStackTrace(__file__)
exit(1)