[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [4366] trunk/py/scripts/addons/ io_scene_vrml2/export_vrml2.py: normalize the absolute path

Campbell Barton ideasman42 at gmail.com
Tue Mar 12 14:36:02 CET 2013


Revision: 4366
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=4366
Author:   campbellbarton
Date:     2013-03-12 13:36:02 +0000 (Tue, 12 Mar 2013)
Log Message:
-----------
normalize the absolute path

Modified Paths:
--------------
    trunk/py/scripts/addons/io_scene_vrml2/export_vrml2.py

Modified: trunk/py/scripts/addons/io_scene_vrml2/export_vrml2.py
===================================================================
--- trunk/py/scripts/addons/io_scene_vrml2/export_vrml2.py	2013-03-12 07:32:25 UTC (rev 4365)
+++ trunk/py/scripts/addons/io_scene_vrml2/export_vrml2.py	2013-03-12 13:36:02 UTC (rev 4366)
@@ -36,7 +36,7 @@
     if use_uv:
         fw('\t\ttexture ImageTexture {\n')
         filepath = uv_image.filepath
-        filepath_full = bpy.path.abspath(filepath, library=uv_image.library)
+        filepath_full = os.path.normpath(bpy.path.abspath(filepath, library=uv_image.library))
         filepath_ref = bpy_extras.io_utils.path_reference(filepath_full, base_src, base_dst, path_mode, "textures", copy_set, uv_image.library)
         filepath_base = os.path.basename(filepath_full)
 



More information about the Bf-extensions-cvs mailing list