[Pythonmac-SIG] os.environ

2006-03-18 Thread Nicholas Cole
I hope that this is not an FAQ, but I can't find an answer on it. I know that Terminal.app is setting the environment variables LINES and COLUMNS (I can see them with the bash "set" command), but os.environ['LINES'] and os.environ['COLUMNS'] don't exist. Why is that? Best, N. __

Re: [Pythonmac-SIG] Question on user's directory ( ~ )

2006-03-18 Thread Stewart Midwinter
On 3/18/06, Kent Quirk <[EMAIL PROTECTED]> wrote: > Try this: > > import os.path > os.path.expanduser('~') you da man! That works perfectly. I mostly use Python on WinXP, so I haven't been familiar with that function up until now. thanks again S ___

Re: [Pythonmac-SIG] Question on user's directory ( ~ )

2006-03-18 Thread Kent Quirk
Try this: import os.path os.path.expanduser('~') You might also find a use for os.path.expandvars() Kent -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Stewart Midwinter Sent: Saturday, March 18, 2006 7:22 PM To: pythonmac-sig@python.org Subje

[Pythonmac-SIG] Question on user's directory ( ~ )

2006-03-18 Thread Stewart Midwinter
I have a question on use of the tilde symbol (~) to access the current user's home directory. If you are in a bash shell, you can "cd ~" and be in the default user's home directory. I want my python app to be able to switch to the user's directory. But I can't use os.chdir('~') since Python does

Re: [Pythonmac-SIG] Would bundlebuilder work "universally?"

2006-03-18 Thread Just van Rossum
Kevin Walzer wrote: > I know py2app doesn't support universal builds right now...would > bundlebuilder? I don't think bundlebuilder supports anything at all currently... bundlebuilder is dead, we should probably just remove it from svn. Just ___ Python

[Pythonmac-SIG] Would bundlebuilder work "universally?"

2006-03-18 Thread Kevin Walzer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I know py2app doesn't support universal builds right now...would bundlebuilder? - -- Kevin Walzer iReveal: File Search Tool http://www.wordtech-software.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.1 (Darwin) Comment: Using GnuPG with Mozilla