8000 Script configuration file env.ini misplaced · Issue #1869 · winpython/winpython · GitHub
[go: up one dir, main page]

Skip to conten 8000 t

Script configuration file env.ini misplaced #1869

@nevsal

Description

@nevsal

Hi there!

The file env.ini contains information used by /scripts/WinPython_PS_Prompt.ps1, /scripts/env.bat, and all launchers, as well as scripts calling these two. Both expect the file to be in the same directory as the script, i.e., /scripts/.

FOR /F "usebackq tokens=1,2 delims==" %%G IN ("%~dp0env.ini") DO (set %%G=%%H)

Get-Content (${PSScriptRoot} +"\env.ini") | ForEach-Object {

It has, however, been placed in /python/scripts/ erroneously by the new generator configurations. Of course, this results into ... error messages.

This should be a simple fix and I intend place a PR shortly, which I hope will find your approval.

Congratulations on the nice work, by the way, @stonebig - it's good to see your hard work paying off.

PS: Old location in make.py: https://github.com/nevsal/winpython/blob/1a08ac557149e758cc8733ae603a22fd4e70d8fd/winpython/make.py#L120

--

Suggested quick fix for users of WinPython 2025-04: Copy (or move) /python/scripts/env.ini to directory /scripts/.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0