[PythonCE] How to execute a scipt on Python startup

Michael Murdock michaelmurdock at gmail.com
Wed Apr 13 20:42:07 CEST 2005

On 4/13/05, Michael Murdock <michaelmurdock at gmail.com> wrote:
 >  Is there a way to have a Python script executed whenever Python starts up?

On 4/12/05, Mark Doukidis <mdoukidis at gmail.com> wrote:
>> Try placing your code inside "sitecustomize.py".
>> This is run every time python is started.

Thanks, Mark! This works fine. 

I was surprised when I found that my sitecustomize.py script imports
sys but sys isn't defined when I ask about it at the python prompt, so
I have to import it again. Why is that?

Thanks again,


More information about the PythonCE mailing list