Compiling on XP home

Irmen de Jong irmen at -NOSPAM-REMOVETHIS-xs4all.nl
Sun Jun 8 17:01:23 EDT 2003


Tim Rowe wrote:
> I'm running Python 2.2.3 on XP Home.  I've just noticed that .pyc
> files are not being created when I execute Python scripts.  I'm
> running as administrator in my own directory, so I have write
> permission.  Does anybody know what's happening?

You have to import them instead of executing them directly:

C:\> python script.py

won't create a script.pyc.

C:\> python -c "import script"

will :-)

--Irmen





More information about the Python-list mailing list