def get_mesh(request, mesh_id):
    mesh = get_object_or_404(Mesh, pk=mesh_id)
    "\n\t\tTODO:\tMake it grab it from the cache instead of generating it\n\t\t\t\tevery single time like some savage that can't handle living\n\t\t\t\tin the twenty-first century\n\t"
    if False:
        pass
    processName = None
    sys = platform.system()
    if (sys == 'Darwin'):
        processName = '/Applications/blender.app/Contents/MacOS/blender'
    else:
        return HttpResponse('Unknown operating system `{}`'.format(sys))
    if (subprocess.call([processName, '--background', mesh.mesh.name, '--python', './gfx/export.py']) == 1):
        return HttpResponse('There was an error')
    (filename, fileExtension) = os.path.splitext(mesh.mesh.name)
    newFileContents = open('{0}.js'.format(filename)).read()
    return HttpResponse(newFileContents)
def get_mesh(request, mesh_id):
    mesh = get_object_or_404(Mesh, pk=mesh_id)
    "\n\t\tTODO:\tMake it grab it from the cache instead of generating it\n\t\t\t\tevery single time like some savage that can't handle living\n\t\t\t\tin the twenty-first century\n\t"
    if False:
        pass
    processName = None
    sys = platform.system()
    if (sys == 'Darwin'):
        processName = '/Applications/blender.app/Contents/MacOS/blender'
    else:
        return HttpResponse('Unknown operating system `{}`'.format(sys))
    if (subprocess.call([processName, '--background', mesh.mesh.name, '--python', './gfx/export.py']) == 1):
        return HttpResponse('There was an error')
    (filename, fileExtension) = os.path.splitext(mesh.mesh.name)
    newFileContents = open('{0}.js'.format(filename)).read()
    return HttpResponse(newFileContents)