Re:A bite of Python
by warkdarrior on Thursday September 08, 2016 @12:26PM
(#12454475)
You do not need access to the same directory as the code itself. Think of a Python program that can use plugins written by users. For example Django.
The same is true for module imports... If you have write access to the same directory as the code itself there's all sorts of havoc one can cause beyond merely substituting your own os.py.