Skip to content

Commit

Permalink
quick fix to avoid error when assets_path doesn’t exist (Path.resolve…
Browse files Browse the repository at this point in the history
… requires existing path)
  • Loading branch information
David Bernard committed Aug 28, 2015
1 parent 27509e8 commit c9099ec
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion helpers.py
Expand Up @@ -223,4 +223,6 @@ def projection_matrix(camd):

def blender_path_abs(path):
from pathlib import Path
return str(Path(bpy.path.abspath(str(path).replace("//../", "//../../"))).resolve())
# return str(Path(bpy.path.abspath(str(path).replace("//../", "//../../"))).resolve())
return bpy.path.abspath(str(path).replace("//../", "//../../"))
# return path

0 comments on commit c9099ec

Please sign in to comment.