[Pythonmac-SIG] possible OT: os.chdir on OSX

Scott Frankel leknarf at pacbell.net
Sat Apr 3 00:30:14 EST 2004


Great!  I'll give this a go ...
Scott


On Apr 2, 2004, at 1:47 PM, Cameron Laird wrote:

>> From Jack.Jansen at cwi.nl Wed Mar 31 16:53:22 2004
>> 		.
>> 		.
>> 		.
>>> ... absolutely true, and one of the classic FAQ
>>> disappointments to many administrators and developers.
>>> HOWEVER, what they *really* want is often just enough
>>> different from "change the parent" that a programmatic
>>> solution *is* possible:  ...
>>>    [I was going to present the answer here,
>>>    but I'm being called away.  I'll return
>>>    to the question later.]
>
>> That's what Fermat said too:-)
>
>> (see the second hit on Google if you've never heard of Fermat)
>> 		.
>> 		.
>> 		.
> You have no idea how much I have to say on these subjects.
> For now, let me try to get quick help to Scott:  instead of
> looking for
>
>     % pwd
>     SOMEWHERE
>     % python pwd_changer.py
>     % pwd
>     SOMEWHERE ELSE
>
> do this
>
>     % pwd
>     SOMEWHERE
>     % eval "cd `python pwd_changer.py`"
>     % pwd
>     SOMEWHERE ELSE
>
> Do you see my point?  I can abbreviate the "eval ..." line
> even more, if that'll help.
>




More information about the Pythonmac-SIG mailing list