[PythonCE] How to execute a scipt on Python startup

Mark Doukidis mdoukidis at gmail.com
Wed Apr 13 03:10:43 CEST 2005


Try placing your code inside "sitecustomize.py".
This is run every time python is started.

On 4/13/05, Michael Murdock <michaelmurdock at gmail.com> wrote:
> Hello,
> 
> I have a Python script that I import in every script that I write that
> imports sys and then calls sys.path.append() to set up a few locations
> where I keep everything on my Axim (some stuff on storage card, some
> in My Documents, etc.).
> 
> Is there a way to have a Python script executed whenever Python starts up?
> 
> Thanks,
> 
> ~Michael.
> _______________________________________________
> PythonCE mailing list
> PythonCE at python.org
> http://mail.python.org/mailman/listinfo/pythonce
>


More information about the PythonCE mailing list