Browse Source

Fix rmdirs to properly handle unicode filenames

[SVN r32824]
Aleksey Gurtovoy 20 years ago
parent
commit
ef91c2d1dd
1 changed files with 2 additions and 2 deletions
  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
 
-# Copyright (c) MetaCommunications, Inc. 2003-2005
+# Copyright (c) MetaCommunications, Inc. 2003-2006
 #
 # Distributed under the Boost Software License, Version 1.0. 
 # (See accompanying file LICENSE_1_0.txt or copy at 
@@ -97,7 +97,7 @@ def rmtree( path ):
     if os.path.exists( path ):
         if sys.platform == 'win32':
             os.system( 'del /f /s /q "%s" >nul 2>&1' % path )
-            shutil.rmtree( path )
+            shutil.rmtree( unicode( path ) )
         else:
             os.system( 'rm -f -r "%s"' % path )
 

粤ICP备19079148号