Datasheet
20
CHAPTER 1 Discovering ironPython
Modifying the IPY.EXE Environment Variables
IPY also supports a number of environment variables. The following list describes each of these
environment variables.
IRONPYTHONPATH: Specifies the path to search for modules used within an application
IRONPYTHONSTARTUP: Specifies the name and location of the startup module
Exiting the IronPython Interpreter
Eventually, you’ll want to leave the console. In order to end your session, simply type exit() and
press Enter. As an alternative, you can always press Ctrl+Z and then Enter. The console will close.
USING THE IRONPYTHON WINDOWED ENVIRONMENT
IronPython also provides access to a win-
dowed environment, but you can’t access it
from the start menu. Instead, you must pro-
vide a shortcut to the file you want to run
or open a command prompt and start the
application manually. The windowed envi-
ronment simply provides a GUI interface
for working with IronPython, but doesn’t
do anything else for you. You start the
windowed environment by using IPYW
.EXE. If you type
IPYW and press Enter, you
see the command line switch help shown in
Figure 1-9.
As you can see from Figure 1-9, the win-
dowed environment supports the same com-
mand line switches as the character mode
command line version. However, you can’t
use the windowed environment to run the
interpreted console environment, which is
a shame because many developers would
prefer working in the nicer environment. To
see that the windowed environment works
the same way as the standard console, type
IPYW WFDemo.py and press Enter. You’ll
see the test application shown earlier in
Figure 1-8.
FIGURE 19: The windowed version supports the same
features as the command line version.
548592c01.indd 20 2/24/10 12:47:14 PM