controller.py 436 Bytes
# -*- coding: UTF-8 -*-

from os import getcwd
from subprocess import call
from sys import argv, path

path.append(getcwd())

from pyutil import printStackTrace
currentPath = path[0] + "/"
blend = currentPath + "avatar_Hozana_wikiLibras.blend"
main = currentPath+"libras.py"

if (len(argv) > 1):
    try:
        call(["blender", "-b", blend, "-P", main, argv[1]])
        exit(0)
    except:
        printStackTrace(__file__)

exit(1)