File
Blob: src/workerd/server/tests/python/pth-file/worker.py
| 1 | import sys |
| 2 | |
| 3 | # The .pth file added a relative path "extra_dir" which should resolve to |
| 4 | # /session/metadata/python_modules/extra_dir and be on sys.path. |
| 5 | expected_extra_dir = "/session/metadata/python_modules/extra_dir" |
| 6 | assert expected_extra_dir in sys.path |
| 7 | |
| 8 | # And the module living in that directory must be importable. |
| 9 | import extra_module |
| 10 | |
| 11 | assert extra_module.VALUE == 42 |
| 12 | |
| 13 | |
| 14 | def test(): |
| 15 | pass |