We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 758f7c7 commit f57a584Copy full SHA for f57a584
graalpython/lib-python/3/venv/__init__.py
@@ -140,8 +140,7 @@ def create_if_needed(d):
140
if sys.platform != "win32":
141
os.chmod(script, 0o777)
142
143
- atexit.register(lambda: os.unlink(script))
144
- atexit.register(lambda: os.rmdir(tempdir))
+ atexit.register(lambda: shutil.rmtree(tempdir, ignore_errors=True))
145
146
dirname = context.python_dir = sys.graal_python_home
147
exename = context.python_exe = "graalpython"
0 commit comments