[Bf-extensions-cvs] [8cd4e766] master: fix relative path

Eugenio Pignataro noreply at git.blender.org
Sun Apr 22 06:18:59 CEST 2018


Commit: 8cd4e766fa881f98ad1261bcc3506524460261b8
Author: Eugenio Pignataro
Date:   Sun Apr 22 01:18:52 2018 -0300
Branches: master
https://developer.blender.org/rBAC8cd4e766fa881f98ad1261bcc3506524460261b8

fix relative path

===================================================================

M	oscurart_mesh_cache_tools.py

===================================================================

diff --git a/oscurart_mesh_cache_tools.py b/oscurart_mesh_cache_tools.py
index 98c54683..ee8ecf30 100644
--- a/oscurart_mesh_cache_tools.py
+++ b/oscurart_mesh_cache_tools.py
@@ -173,7 +173,7 @@ class OscEPc2ExporterPanel(View3DMCPanel, Panel):
 def OscSetFolder(self, context, filepath):
     fp = filepath if os.path.isdir(filepath) else os.path.dirname(filepath)
     try:
-        os.chdir(os.path.dirname(filepath))
+        os.chdir(os.path.dirname(bpy.data.filepath))
     except Exception as e:
         self.report({'WARNING'}, "Folder could not be set: {}".format(e))
         return {'CANCELLED'}



More information about the Bf-extensions-cvs mailing list