remove so-called security patch,

this has been used by various projects but needs to be justified since it wont remove paths that also resolve to the CWD, "." for instance.
This commit is contained in:
Campbell Barton 2010-02-28 17:11:42 +00:00
parent ed7f4f2e3c
commit 0e18035f82

@ -38,8 +38,10 @@ import sys as _sys
def _main():
# security issue, dont allow the $CWD in the path.
_sys.path[:] = filter(None, _sys.path)
## security issue, dont allow the $CWD in the path.
## note: this removes "" but not "." which are the same, security
## people need to explain how this is even a fix.
# _sys.path[:] = filter(None, _sys.path)
# a bit nasty but this prevents help() and input() from locking blender
# Ideally we could have some way for the console to replace sys.stdin but