windows and home path

Andrea Crotti andrea.crotti.0 at gmail.com
Tue Jan 24 09:56:21 EST 2012


Window never stops to surprise me, I've been banging my head since 
yesterday and only
now I now what is the problem.

So suppose I have something like

from os import path
print path.expanduser('~')

If I run it from cmd.exe I get /Users/user, doing the same in an emacs 
eshell buffer I get
/Users/user/AppData/Roaming.

What sense does it make??
Is there a way to get always the same variable from python somehow?

Thanks,
Andrea



More information about the Python-list mailing list