[Pyobjc-dev] Web Services Tool example updated
Brought to you by:
ronaldoussoren
From: Bill B. <bb...@co...> - 2002-10-11 14:53:32
|
The Web Services Tool has been updated to work with the Apple supplied Python. The change was quite easy -- it simply sets up the command line arguments as one normally would when using /usr/bin/python and calls execve() to transfer control to the python interpreter. Unfortunately, due to the way python starts the interpreter, the path to the python executable is required (i.e. the #! at the head of the script is ignored. Fortunately, it really doesn't matter and I could recycle the code from the original main file. If you want to mix compiled ObjC with Python, you'll need to create a bundle target in your app project. Then, create a copy files build phase that copies the bundle product into your app wrapper. Finally, load the bundle from Main.py. b.bum |