by ptx · 11y ago · 0 comments
Let's say you reimplement ls in Python. You then use your shiny new program to have a look at some downloaded files:
$ ../utils/ls.py
['hello.txt', 'os.py']
So far so good. Now let's try it with PYTHONPATH set to include the current directory: $ PYTHONPATH="." ../utils/ls.py
Boom! Your box is mine!
['no', 'files', 'for', 'you']This is apparently an unacceptable limitation for some people, judging by the responses to the article - however for others it's not.