Răsfoiți Sursa

Fix rmdirs to properly handle unicode filenames

[SVN r32824]
Aleksey Gurtovoy 20 ani în urmă
părinte
comite
ef91c2d1dd
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      tools/regression/xsl_reports/runner/regression.py

+ 2 - 2
tools/regression/xsl_reports/runner/regression.py

@@ -1,6 +1,6 @@
 #!/usr/bin/python
 #!/usr/bin/python
 
 
-# Copyright (c) MetaCommunications, Inc. 2003-2005
+# Copyright (c) MetaCommunications, Inc. 2003-2006
 #
 #
 # Distributed under the Boost Software License, Version 1.0. 
 # Distributed under the Boost Software License, Version 1.0. 
 # (See accompanying file LICENSE_1_0.txt or copy at 
 # (See accompanying file LICENSE_1_0.txt or copy at 
@@ -97,7 +97,7 @@ def rmtree( path ):
     if os.path.exists( path ):
     if os.path.exists( path ):
         if sys.platform == 'win32':
         if sys.platform == 'win32':
             os.system( 'del /f /s /q "%s" >nul 2>&1' % path )
             os.system( 'del /f /s /q "%s" >nul 2>&1' % path )
-            shutil.rmtree( path )
+            shutil.rmtree( unicode( path ) )
         else:
         else:
             os.system( 'rm -f -r "%s"' % path )
             os.system( 'rm -f -r "%s"' % path )
 
 

粤ICP备19079148号