Is this a security risk with Python too?

Bernhard Herzog bh at
Fri Aug 16 17:16:27 CEST 2002

Gerhard Häring <gerhard.haering at> writes:

> Roman Suzi wrote:
> > Among numerous security alerts, I saw the following:
[current working directory on a module search path]
> > Is this true for Python too (in some cases)?
> No, unless you explicitely put the working directory into Python's search
> path by changing PYTHONPATH or sys.path, for example.

Or when you're running in interactive mode or the script you pass on the
commandline is in the working directory.


Intevation GmbH                       

More information about the Python-list mailing list