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.
__
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
___
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
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
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
-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