Fix first regression introduced with r55173: need to import shutil before using metho...
authorSergey Sharybin <sergey.vfx@gmail.com>
Mon, 11 Mar 2013 09:11:46 +0000 (09:11 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Mon, 11 Mar 2013 09:11:46 +0000 (09:11 +0000)
Otherwise linux buildbot fails dramatically.

That revision also leads to msvc runtime libs being removed, will fix this
in separate commit.

Take more respect for such creepy as linux and windows platforms, they're not so bad!

build_files/buildbot/slave_compile.py

index 0b11e642035acce99bba59daed4c6030502f90bd..38b621a9055a1d1dc60f97c1c94031c97595539e 100644 (file)
@@ -21,6 +21,7 @@
 import os
 import subprocess
 import sys
+import shutil
 
 # get builder name
 if len(sys.argv) < 2:
@@ -70,8 +71,6 @@ else:
     config_dir = os.path.join(buildbot_dir, 'config')
 
     if builder.find('linux') != -1:
-        import shutil
-
         configs = []
         if builder.endswith('linux_glibc211_x86_64_scons'):
             configs = ['user-config-player-glibc211-x86_64.py',