Python os.geteuid() for windows
Question: I saw that os.geteuid() is only available for unix, how to replace its usage
in windows. I needed this because celery is using the function and for celery
to run in windows I need this function alternative for windows. Please do
help.


Answer: User id in Windows? I'm not sure
[getpass](http://docs.python.org/2/library/getpass.html) is what you want.

    
    
    import getpass
    getpass.getuser()
    
    >>> 'HelloWorld'
    

But be careful, the function is return values of various **environment
variables**.

Environment variable can be changed.

