python and vc numbers

Daniel Dalton d.dalton at iinet.net.au
Tue Dec 1 06:01:22 EST 2009


> Can you make do with the tempfile module? Or you'd need to identify
> from an external process which console is locked?

Perhaps, I wrote a small hack: 
- Manually set environment variable TTYNUMBER in .bash_profile
- Then use this in the script, to establish what tty I'm working with.

Thanks

-- 
Cheers,
Dan

http://members.iinet.net.au/~ddalton/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://mail.python.org/pipermail/python-list/attachments/20091201/9ae7f560/attachment-0001.sig>


More information about the Python-list mailing list