Update URDF Exporter for Python 3.13.2 Compatibility #7
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Update URDF Exporter for Python 3.13.2 Compatibility
Summary
This pull request updates the Fusion 360 URDF Exporter to ensure compatibility with Python 3.13.2. The changes address deprecated functionality, improve script stability, and enhance maintainability, ensuring seamless execution in the latest Python version.
Changes and Improvements
Refactored File and Directory Handling
distutils.dir_util.copy_treewithshutil.copytreedistutilshas been deprecated and is no longer available in Python 3.13.shutil.copytree()now handles package copying withdirs_exist_ok=True, preventing unnecessary errors.Enhanced STL Export Function
Improved Package Creation
shutil.copytree()for better cross-version support.launch/,urdf/, andconfig/.Rationale for Changes
distutils, breaking the existing URDF exporter.Testing and Verification
This update ensures long-term compatibility while maintaining existing functionality. Please review and provide feedback if any further modifications are required.