yanes
November 22nd, 2010, 12:55 AM
Hi all ,
I coded a python application in Python that manage some files
when we need to locate the User Home folder , We do some thing like :
>>> import os
>>> print os.getenv("HOME")
/home/yanes
Or simply you can get all possible environment variables via :
>>> import os
>>> print os.environ
But in all system variables , I can't locate The desktop folder path
:p , in an english version of the distribution it's a :
"/home/yanes/Desktop" ;) (Example)
but in other distirbution languages it's name 'll be translated
it's called "Bureau" in french copies for example
So is there a python issue or system variable that return the exact name or full path for the Desktop folder ?
thanks in advance ;)
I coded a python application in Python that manage some files
when we need to locate the User Home folder , We do some thing like :
>>> import os
>>> print os.getenv("HOME")
/home/yanes
Or simply you can get all possible environment variables via :
>>> import os
>>> print os.environ
But in all system variables , I can't locate The desktop folder path
:p , in an english version of the distribution it's a :
"/home/yanes/Desktop" ;) (Example)
but in other distirbution languages it's name 'll be translated
it's called "Bureau" in french copies for example
So is there a python issue or system variable that return the exact name or full path for the Desktop folder ?
thanks in advance ;)