Re: A question related to the PYTHONPATH

2018-03-26 Thread oyono
Le lundi 26 mars 2018 08:11:02 UTC+2, dieter a écrit : > adrien oyono writes: > > I have recently read the documentation about how imports work on python, > > and I was wondering why, when you execute a python file, the current > > directory is not added by default to the PY

Re: A question related to the PYTHONPATH

2018-03-26 Thread oyono
Le mardi 27 mars 2018 07:42:57 UTC+2, dieter a écrit : > oyono writes: > > ... > > I was thinking, maybe it could have been done this way to enforce not > > running module files that are supposed to be bundled into packages as > > "independant" python

A question related to the PYTHONPATH

2018-03-25 Thread adrien oyono
eturned by importlib.machinery.PathFinder.find_spec() > <https://docs.python.org/3/library/importlib.html#importlib.machinery.PathFinder.find_spec> > will be the actual current working directory and not the empty string. > What I am interested in is what is the reason of this difference ? P.S.: - My english may suck a bit, please blame it on me being a French native speaker - Sorry if the colours hurt 😅 *Adrien OYONO* -- https://mail.python.org/mailman/listinfo/python-list