spawnle & umask

David Wahler dwahler at gmail.com
Thu Dec 8 08:04:00 EST 2005


Yves Glodt wrote:
> It does, I did like this:
>
> os.umask(0113)
> newpid =
> os.spawnl(os.P_NOWAIT,'/usr/local/bin/wine','/usr/local/bin/wine',executable)
>
> But I wanted to use spawnle and it's env argument, to avoid setting
> umask manually...

The umask is not part of the environment, so there's no way to set it
directly through spawnle. Why don't you want to use os.umask?

-- David




More information about the Python-list mailing list