[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [42145] trunk/blender/release/scripts/ startup/bl_operators/clip.py: skip importing shutil on load.

Campbell Barton ideasman42 at gmail.com
Thu Nov 24 22:59:45 CET 2011


Revision: 42145
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=42145
Author:   campbellbarton
Date:     2011-11-24 21:59:43 +0000 (Thu, 24 Nov 2011)
Log Message:
-----------
skip importing shutil on load.

Modified Paths:
--------------
    trunk/blender/release/scripts/startup/bl_operators/clip.py

Modified: trunk/blender/release/scripts/startup/bl_operators/clip.py
===================================================================
--- trunk/blender/release/scripts/startup/bl_operators/clip.py	2011-11-24 21:16:27 UTC (rev 42144)
+++ trunk/blender/release/scripts/startup/bl_operators/clip.py	2011-11-24 21:59:43 UTC (rev 42145)
@@ -19,9 +19,7 @@
 # <pep8 compliant>
 import bpy
 import os
-import shutil
 from bpy.types import Operator
-from bpy_extras.io_utils import unpack_list, unpack_face_list
 
 from mathutils import Vector, Matrix
 
@@ -128,6 +126,8 @@
         return (sc.type == 'CLIP_EDITOR') and sc.clip
 
     def execute(self, context):
+        from bpy_extras.io_utils import unpack_list
+
         sc = context.space_data
         clip = sc.clip
 
@@ -171,6 +171,8 @@
         return wm.invoke_confirm(self, event)
 
     def _rmproxy(self, abspath):
+        import shutil
+
         if not os.path.exists(abspath):
             return
 
@@ -648,6 +650,8 @@
 
     @staticmethod
     def _createMesh(scene, name, vertices, faces):
+        from bpy_extras.io_utils import unpack_list, unpack_face_list
+
         mesh = bpy.data.meshes.new(name=name)
 
         mesh.vertices.add(len(vertices))




More information about the Bf-blender-cvs mailing list