[New-bugs-announce] [issue41304] python 38 embed ignore python38._pth file

Jimmy Girardet report at bugs.python.org
Wed Jul 15 10:41:17 EDT 2020


New submission from Jimmy Girardet <ijkl at netc.fr>:

Hi,
With python embed unziped in `38` directory(python 3.8.4):

```
# python38._pth
python38.zip
.
..\\app
# Uncomment to run site.main() automatically
#import site
```

```
PS C:\Users\jimmy\rien\embed> .\38\python.exe -c "import sys;print(sys.path);import hello"
['', 'C:\\Users\\jimmy\\rien\\embed\\38\\python38.zip', 'C:\\Users\\jimmy\\rien\\embed\\38\\DLLs', 'C:\\Users\\jimmy\\ri
en\\embed\\38\\lib', 'C:\\Users\\jimmy\\rien\\embed\\38']
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'hello'


'\\app' is not added to sys.path. it is under python 3.
```

Note It's working under python 3.7.8

----------
components: Interpreter Core
messages: 373698
nosy: jgirardet
priority: normal
severity: normal
status: open
title: python 38 embed ignore python38._pth file
versions: Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41304>
_______________________________________


More information about the New-bugs-announce mailing list