Skip to content
File

Blob: src/workerd/server/tests/python/pth-file/worker.py

python16 lines
1import 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.
5expected_extra_dir = "/session/metadata/python_modules/extra_dir"
6assert expected_extra_dir in sys.path
7 
8# And the module living in that directory must be importable.
9import extra_module
10 
11assert extra_module.VALUE == 42
12 
13 
14def test():
15 pass