66< H1 > Embedding Python on the Mac</ H1 >
77< HR >
88< B > Note</ B > : if you have a binary-only release of MacPython you will not
9- have this demo installed. Install the developer option (in the standard installer) or go to
10- < a href ="http://www.cwi.nl/~jack/macpython.html "> Jack's MacPython Page</ a >
11- to download either a source release if you want to embed
9+ have this demo installed. Install the developer option (in the standard installer) or
10+ a source release if you want to embed
1211Python in other applications. < p >
1312
1413Embedding Python on the mac is pretty similar to embedding it on other
@@ -23,8 +22,8 @@ <H1>Embedding Python on the Mac</H1>
2322< LI > You have to be consequent in your use of GUSI. If the library uses
2423it so should your program and vice versa.
2524
26- < LI > The console-behaviour (close-on-exit, etc) is controlled by Python,
27- but you are of course free to change that after calling PyMac_Initialize() .
25+ < LI > The console-behaviour (close-on-exit, etc) is controlled by Python
26+ but you can overwrite this with < code > PyMac_SetConsoleHandler() </ code > .
2827</ UL >
2928
3029The Python environment is started with a dummy argc and argv, and initial
@@ -37,10 +36,9 @@ <H1>Embedding Python on the Mac</H1>
3736library < code > PythonCore</ code > . An example project and source can be
3837found in the < a href ="embed "> embed</ a > folder. < p >
3938
40- < b > Note</ b > : you may think that you do not have the project file
41- < code > PythonCore</ code > but actually you do: the standard installation
42- process deposits it in the < code > Extensions</ code > folder in the system
43- folder under the name < code > PythonCore < i > version</ i > </ code > . Add that file
44- to the project replacing < code > PythonCore</ code > . < p >
39+ This example code also shows how to override the console: if you pass the
40+ < code > -q</ code > argument in the argument box output is thrown away. If you
41+ pass the < code > -d</ code > option the output is sent to < code > DebugStr</ code >
42+ (so be sure to use this only when running the example under a debugger).
4543</ BODY >
4644</ HTML >
0 commit comments