[Pythonmac-SIG] Read Strings from Resources

2004-12-20 Thread wicked-witch
I working on a project, where I want to read a STR# resource and write it into an xml file. With Carbon.Res I can easily access the file an read the string Resources for each ID. But with the Res.Get1Resource('STR#', id).data I get all the strings in the list in one string only. Is there a metho

Re: [Pythonmac-SIG] Re: Pythonmac-SIG Digest, Vol 20, Issue 24

2004-12-20 Thread Jon Schull
many successes one failure (the macpython2.3 IDE no longer works) Jeff wrote: Jon: You're supposed to source /sw/bin/init.sh to set up the fink environment. If you don't do that, a lot of things won't work. http://fink.sourceforge.net/doc/users-guide/install.php? phpLang=en#setup that sound

Re: [Pythonmac-SIG] Re: Pythonmac-SIG Digest, Vol 20, Issue 24

2004-12-20 Thread Ronald Oussoren
208-186-56-189:/sw/bin jis$ cat /sw/bin/idle2.3 #!/sw/bin/python Which python is first on your path? IIRC there is a feature in darwin that wreaks havoc with the setup code in python that finds the correct prefix (and library). This ends up always picking the prefix for the first python on the

Re: [Pythonmac-SIG] Re: Pythonmac-SIG Digest, Vol 20, Issue 24

2004-12-20 Thread Jon Schull
Thanks to your comments, I think I'm making some progress here ... On Dec 20, 2004, at 10:21 AM, Bob Ippolito wrote: Apache starts as root with root's default environment. It's not going to have /sw/bin in its path, so /usr/bin/env python is not going to run Fink python. You might as well repla

Re: [Pythonmac-SIG] Re: Pythonmac-SIG Digest, Vol 20, Issue 24

2004-12-20 Thread Bob Ippolito
On Dec 20, 2004, at 8:30 AM, Jon Schull wrote: For what its worth I came across a seemingly related set of issues last night while trying to get apache to run python cgis. Our solution was to rewrite the #! lines as #! /sw/bin/env /sw/bin/python (the magic was in adding the first phrase). Rela

[Pythonmac-SIG] Re: Pythonmac-SIG Digest, Vol 20, Issue 24

2004-12-20 Thread Jon Schull
Thanks for the replies Jon said The problem of multiple pythons on OSX is really really crippling. I use visual python (which requires X which requires one python) and I want to work in and run with the standard OS X look and feel. I spend literally hours every month or two trying (unsuccess

Re: [Pythonmac-SIG] Re: Pythonmac-SIG Digest, Vol 20, Issue 23

2004-12-20 Thread Bob Ippolito
On Dec 19, 2004, at 12:37 PM, Jon Schull wrote: The problem of multiple pythons on OSX is really really crippling. I use visual python (which requires X which requires one python) and I want to work in and run with the standard OS X look and feel. I spend literally hours every month or two

[Pythonmac-SIG] Re: Pythonmac-SIG Digest, Vol 20, Issue 23

2004-12-20 Thread Jon Schull
The problem of multiple pythons on OSX is really really crippling. I use visual python (which requires X which requires one python) and I want to work in and run with the standard OS X look and feel. I spend literally hours every month or two trying (unsuccessfully) to get the various syste