You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is the same as shutil.copytree outside of the custom error message. Is there some hidden problem with the standard library method or can this be simplified?
The text was updated successfully, but these errors were encountered:
I now realize this is probably because importlib.resources doesn't return actual files, but just "Traversable" objects. When the minimum python version is raised 3.9, then this could be simplified as mentioned in the first comment by calling as_file() first.
Yes, that's exactly correct, it is due to how importlib returns the information to us. I'm not inherently opposed to upgrading the python version, although that would be a lot of changes at this point in time.
I'm not inherently opposed to upgrading the python version, although that would be a lot of changes at this point in time.
I'm not proposing that, I agree it would be hassle for little gain. Python 3.8 is the default in ubuntu 20.04 (3.9 is available in apt, however), just wanted to note that this discussion can be revisited if/when its raised.
Hi @Maetveis, sorry for the very late response. Thanks for the suggestion, I have replaced copy_from_package with shutil.copytree in #1075. Closing this issue.
The file copy in rocm-docs core makes use of the handwritten
copy_from_package
function:https://github.com/RadeonOpenCompute/rocm-docs-core/blob/e9c03741abeb0f8043943ce65e16e0d37d6d5de5/src/rocm_docs/__init__.py#L310-L333
This is the same as
shutil.copytree
outside of the custom error message. Is there some hidden problem with the standard library method or can this be simplified?The text was updated successfully, but these errors were encountered: