current umask
Emile van Sebille
emile at fenx.com
Wed Oct 25 08:38:38 EDT 2000
umask = os.popen('umask').read()[:-1]
--
Emile van Sebille
emile at fenx.com
-------------------
"Tino Lange" <Tino.Lange at surf-callino.de> wrote in message
news:8t65m0$h9$1 at riker.addcom.de...
> Hi Python-Friends,
>
> how can I determine the "current" umask
> without touching it?
>
> In 'os' there is this command:
>
> umask (mask)
> Set the current numeric umask and returns the previous
umask. Availability:
> Unix, Windows.
>
> But I cannot use it as
>
> umask=os.umask()
>
> But I don't want to change the value, just query the
current one.
> How is that possible?
>
> Ciao
>
> Tino
>
>
>
More information about the Python-list
mailing list