PyEdit in Programming Python 2nd ed
Laura Lewin
Laura_01 at MailAndNews.com
Mon Apr 30 09:49:55 EDT 2001
Hi,
I just wanted to make sure you are running Launch_PyDemos.pyw, not
PyDemos.pyw. If you are running PyDemos.pyw directly without setting up
PYTHONPATH, this may explain the problem.
The first of these (Launch_PyDemos) auto-configures the environment for
spawning book demos, and starts PyDemos. The second (PyDemos itself)
assumes
that the environment has already been configured, either manually, or by the
top-level Launch_PyDemos layer.
That's why PyEdit (and a few others demos run from PyDemos that depend on
the
module search path) will not work from PyDemos, unless you've done manual
environment configuration, or started PyDemos indirectly by running
Launch_PyDemos. Both of these scripts are described in the Preface.
If this doesn't take care of the problem, let me know, there are some other
things we can do.
Laura
LLewin at oreilly.com
>===== Original Message From "Fiel Cabral" <fscabral at bellsouth.net> =====
>This is about one of the example programs in Programming Python 2nd ed.
>I just bought the book and while I was trying its Demo Launcher script, I
>found that I
>couldn't start the PyEdit script by clicking on its button. I'm running
>ActiveState python 2.1
>on my Win98SE machine. Has anyone encountered this problem before? PyEdit
>should
>work on Win98SE and with ActiveState python 2.1.
>
>
More information about the Python-list
mailing list