Commit 925b2e4834124f2ac5eff608fdccf5a6f2c30b71
1 parent
1c00fa35
Exists in
master
Corrige python path no arquivo libras.py
Showing
1 changed file
with
12 additions
and
5 deletions
Show diff stats
libras.py
| 1 | # -*- coding: UTF-8 -*- | 1 | # -*- coding: UTF-8 -*- |
| 2 | 2 | ||
| 3 | -# importa modulos do Blender e Python | ||
| 4 | -import bpy, json | ||
| 5 | -from os import getcwd | 3 | +# importa modulo do Blender |
| 4 | +import bpy | ||
| 5 | + | ||
| 6 | +# importa modulos do Python | ||
| 7 | +import json | ||
| 6 | from sys import argv, path | 8 | from sys import argv, path |
| 9 | +from os.path import abspath, dirname | ||
| 10 | + | ||
| 11 | +# define o caminho absoluto do diretório deste arquivo | ||
| 12 | +getcwd = dirname(abspath(__file__)) | ||
| 7 | 13 | ||
| 8 | -# insere o diretorio atual no path (permite o acesso aos modulos locais) | ||
| 9 | -path.append(getcwd()) | 14 | +# insere o caminho do diretorio atual no path (permite o acesso aos modulos locais) |
| 15 | +path.insert(0, getcwd) | ||
| 10 | 16 | ||
| 11 | # importa modulos locais | 17 | # importa modulos locais |
| 12 | import util, moves | 18 | import util, moves |
| @@ -24,6 +30,7 @@ util.outconf() | @@ -24,6 +30,7 @@ util.outconf() | ||
| 24 | 30 | ||
| 25 | # define a posição dos keyframes | 31 | # define a posição dos keyframes |
| 26 | hands_default_frames = [15, 18] | 32 | hands_default_frames = [15, 18] |
| 33 | + | ||
| 27 | # define a posição dos keyframes | 34 | # define a posição dos keyframes |
| 28 | hands_frames_retilineo = [30, 33] | 35 | hands_frames_retilineo = [30, 33] |
| 29 | 36 |