Skip to content
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

Fix path detection algorithm #1681

Merged
merged 1 commit into from
Jun 2, 2024
Merged

Fix path detection algorithm #1681

merged 1 commit into from
Jun 2, 2024

Commits on Jun 2, 2024

  1. Fix path detection algorithm

    This commit ...
    
    1. uses a more robust algorithm to determine special ST paths at startup, which
       no longer relies on location of `Default.sort` module, but uses
       `sys.executable` variable to determine, whether PC is running within
       ST plugin environment or on an external CI runner which mocks ST API.
    
       The new approach fixes an issue, which causes path detection to resolve
       invalid paths, if users extract whole Default package.
       PC assumed sublimehq's development environment in that case.
    
    2. moves forward to rely on `__spec__` in favor of `__file__` and `__loader__`
       as this is what python is moving to in general. The ladder ones are dropped
       step by step by recent python releases (3.13).
    deathaxe committed Jun 2, 2024
    Configuration menu
    Copy the full SHA
    737bb48 View commit details
    Browse the repository at this point in the history