[Pyobjc-dev] Re: [Pyobjc-checkins] CVS: pyobjc/Examples/TableModel2 main.m,1.4,1.5
Brought to you by:
ronaldoussoren
From: Ronald O. <ous...@ci...> - 2002-11-22 21:07:04
|
On Friday, Nov 22, 2002, at 21:45 Europe/Amsterdam, Just van Rossum wrote: > Look, the patch below shows _exactly_ why I don't like the execve > wrapper to > written in anything but Python. I can't even tell (but then again, I'm > lazy) > whether this prepends or sets or appends PYTHONPATH. (Ronald, please > don't take > this as an insult, the code is just fine, I'm just trying to make a > further > argument for the Python version...) No insult was taken. This appends to PYTHONPATH, doing it the other way around is probably better. I'll check-in a patch latter tonight. BTW. There is no need to convince me about using Python instead of C :-) > > I will apply a similar patch to the execve wrapper, but I need to do > different > things in different situations: > > When building an applet: > - append PYTHONPATH (not prepend as that kindof defeats its purpose) > > When building a fully standalone app: > - set PYTHONHOME to something inside the bundle, just to make sure > no modules can be loaded from anywhere but the bundle > - set or replace PYTHONPATH. A bogus PYTHONPATH could otherwise > break the app. Sounds good, but how are you going to deal with moving the .app bundle when not using /usr/bin/python? '#!../Resources/python-interpreter' probably won't work. Standalone apps are probably the most important for not using a python-based main. Ronald |