util/paths.py
changeset 1732 94ffe74e6895
parent 1680 6db967480b7d
child 1736 7e61baa047f0
equal deleted inserted replaced
1731:6ebd9c40b2be 1732:94ffe74e6895
    20 #
    20 #
    21 # You should have received a copy of the GNU General Public License
    21 # You should have received a copy of the GNU General Public License
    22 # along with this program; if not, write to the Free Software
    22 # along with this program; if not, write to the Free Software
    23 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
    23 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
    24 
    24 
    25 import os, sys
    25 import os
       
    26 import sys
    26 
    27 
    27 def AbsFile(file):
    28 def AbsFile(file):
    28     if isinstance(file, str):
    29     if isinstance(file, str):
    29         file = unicode(file,sys.getfilesystemencoding())
    30         file = unicode(file,sys.getfilesystemencoding())
    30     return file
    31     return file