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 emve
Recipients emve
Date 2021-07-19.13:42:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1626702129.3.0.0436089797565.issue44673@roundup.psfhosted.org>
In-reply-to
Content
When I add mylib to python39._pth, Python treats
it relatively to c:\Python3 (where my embedded python resides).

>>> import sys
>>> print('\n'.join(sys.path))
c:\python3\python39.zip
c:\python3
c:\python3\lib
c:\python3\mylib
c:\python3\lib\site-packages
>>>

However, my mylib directory is in my current project directory,
which is obviously not under c:\Python3

I know that the solution is to enter full path to mylib into python39._pth, but it is quite unconvenient as I have multiple projects, each with its own local modules in mylib directory.

Is there a way to simply add only one mylib
entry into python39._pth?
History
Date User Action Args
2021-07-19 13:42:09emvesetrecipients: + emve
2021-07-19 13:42:09emvesetmessageid: <1626702129.3.0.0436089797565.issue44673@roundup.psfhosted.org>
2021-07-19 13:42:09emvelinkissue44673 messages
2021-07-19 13:42:09emvecreate