This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author palm.kevin
Recipients palm.kevin
Date 2016-07-14.22:50:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1468536614.57.0.563747018021.issue27516@psf.upfronthosting.co.za>
In-reply-to
Content
The way the python path is initialized with the embeddable python distribution makes no sense for me.

If no environment variable PYTHONPATH is set, then the path is initialized like this:
  [python352]\python35.zip;.\DLLs;.\lib;[folder_of_executable]
     --> the distribution folder itself is not in the path ([python352]), an import of _socket will thus fail !
     --> Having DLLs and lib in the path is useless
(Notice, that when the PYTHONHOME is initialized, then the path '[python352]' is also used for DLLs and lib (instead of '.\')


If the environment variable PYTHONPATH is set, then the path is extended like this:
  [python352]\python35.zip;[folder_of_executable]
     --> the distribution folder itself is not in the path ([python352]), an import of _socket will thus fail !

I would prefer this behavior:
* python path is not initialized anymore with 'DLLs' and 'lib' 
* the distribution-folder should always be added to the python-path
History
Date User Action Args
2016-07-14 22:50:14palm.kevinsetrecipients: + palm.kevin
2016-07-14 22:50:14palm.kevinsetmessageid: <1468536614.57.0.563747018021.issue27516@psf.upfronthosting.co.za>
2016-07-14 22:50:14palm.kevinlinkissue27516 messages
2016-07-14 22:50:14palm.kevincreate