Compiling from Pythonwin?
Chris Gonnerman
chris.gonnerman at newcenturycomputers.net
Sun Feb 3 16:32:47 EST 2002
----- Original Message -----
From: "Spencer Doidge" <spencer at spencerdoidge.com>
> Is there a way to compile .py scripts from the Pythonwin GUI screen other
> than using compileFile(...)?
Any time you import a Python script from a drive where you have write
access, it will be compiled automatically. Your "top-level" script
ordinarily won't be, and generally doesn't need to be.
So,
import mymodule
will compile mymodule.py to mymodule.pyc automatically.
More information about the Python-list
mailing list