[New-bugs-announce] [issue2972] arguments and default path not set in site.py and sitecustomize.py

Henrik Vendelbo report at bugs.python.org
Mon May 26 18:17:16 CEST 2008


New submission from Henrik Vendelbo <hvendelbo.dev at googlemail.com>:

If you want to use site.py/sitecustomize.py as a regular python script,
altering behaviour of calling the python exe, there is a significant
problem.

sys.argv isn't assigned until after site.py completes, and the directory
of the script to execute is added to sys.path after site.py completes as
well.

If it cannot be introduced for backwards compatibility, there should at
least be a way to access the information

----------
components: None
messages: 67372
nosy: hvendelbo
severity: normal
status: open
title: arguments and default path not set in site.py and sitecustomize.py
versions: Python 2.5

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2972>
__________________________________


More information about the New-bugs-announce mailing list