Closed dholth closed 3 months ago
The change looks ok to me but I'm not sure why this fixes the mentioned issue 🤔 How can the cwd not exist? Or is it because it's being run in a volatile directory which by the time of execution has been deleted?
The change looks ok to me but I'm not sure why this fixes the mentioned issue 🤔 How can the cwd not exist? Or is it because it's being run in a volatile directory which by the time of execution has been deleted?
Yes, it is a weird error. Could it be interacting with the cwd's lack of thread safety? This is the best we can do in conda-package-handling; if the caller passes out_folder
then we won't trigger the exception.
mkdir foo
cd foo
python3
# in a separate shell, rmdir foo
>>> import os
>>> os.getcwd()
FileNotFoundError: [Errno 2] No such file or directory
Thanks!
Description
Fix #205 (if caller passes output directory)
Checklist - did you ...
news
directory (using the template) for the next release's release notes?