Skip to content

fix: make resource module usage Windows-compatible #1112

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

PramaYudhistira
Copy link

@PramaYudhistira PramaYudhistira commented May 28, 2025

Motivation

resource module is Unix-specific and not available on windows

Content

  • In recursion.py: Moved resource import inside Linux check to prevent Windows from trying to import it
  • In file.py: Added Windows-specific error handling while preserving original behavior for non-Windows platforms

Testing

Wrote a test script and tested on both Ubuntu and Windows PowerShell

Please check the following before marking your PR as ready for review

  • I have added tests for my changes
  • I have updated the documentation or added new documentation as needed

@PramaYudhistira PramaYudhistira requested review from codegen-team and a team as code owners May 28, 2025 17:05
@PramaYudhistira PramaYudhistira force-pushed the fix/cross-platform-compatibility branch from 7a00c5a to e2d7f7f Compare May 28, 2025 17:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant