Localization of Windows Pathname in Python or PyQT -


i seaching days solution can't find anything... hope can help.

i need translated windows path in python.

c:\programdata\microsoft\windows\start menu\programs\accessories\calculator.lnk 

is in windows explorer on german systems:

c:\programdata\microsoft\windows\startmenü\programme\zubehör\rechner.lnk 

i need translated path/file name in python or pyqt - if use e.g. os.walk() gives me real (untranslated) file names - correct usage in special case need translated file/folder names...

thank much

the windows api shgetlocalizedname.

this new function (windows vista onwards), , not seem available in pywin32. however, can wrap function using ctypes module if there's not ready-made solution available.


Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -