Skip to content

Commit 1939deb

Browse files
committed
[GR-40902] Define os.__file__ manually, since it's commonly queried and we freeze os.py
1 parent 027b06a commit 1939deb

File tree

1 file changed

+3
-0
lines changed
  • graalpython/lib-python/3

1 file changed

+3
-0
lines changed

graalpython/lib-python/3/os.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1112,3 +1112,6 @@ def add_dll_directory(path):
11121112
cookie,
11131113
nt._remove_dll_directory
11141114
)
1115+
1116+
1117+
__file__ = f"{__graalpython__.stdlib_home}/os.py"

0 commit comments

Comments
 (0)