GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — The Script in `env_for_icons.bat` No Longer Calls for `env.bat` · Issue #1927 · winpython/winpython

The Script in env_for_icons.bat No Longer Calls for env.bat #1927

New issue
Copy link
New issue
Copy link
Open
#1938
Open
The Script in env_for_icons.bat No Longer Calls for env.bat#1927
#1938
Copy link
Labels
enhancement
Milestone
2026-01 python-3.14 full

Description

@RoyiAvital
RoyiAvital
opened on Dec 29, 2025
Issue body actions

In previous versions all scripts would run env.bat.
Now env_for_icons.bat does not call it, hence all configuration in env.bat is not applied.

Activity

  1. RoyiAvital commented on Dec 29, 2025

    @RoyiAvital
    RoyiAvital
    on Dec 29, 2025
    Author
    More actions

    This basically broke all portability of the WinPython system.

  2. RoyiAvital commented on Dec 29, 2025

    @RoyiAvital
    RoyiAvital
    on Dec 29, 2025
    Author
    More actions

    I think the whole architecture of the project should be streamlined into a single winpythonenv.bat file and launchers.
    What prevents that?

    Better yet, do it using PowerShell.

  3. stonebig commented on Dec 30, 2025

    @stonebig
    stonebig
    on Dec 30, 2025
    Contributor
    More actions

    This basically broke all portability of the WinPython system.

    Why do you say it "basically" broke something ? Example ?

    The change you see was done a release ago, as trying to reduce DOS lines to zero.

    Reasoning was that:

    • Powershell is not allowed by default on users, and there are two versions of it
    • python is a scripting langage, so why not using python rather than powershell.

    Rechecking, the only change I see is a missing "set PYTHONIOENCODING=utf-8", that is maybe a mistake.

  4. RoyiAvital commented on Dec 30, 2025

    @RoyiAvital
    RoyiAvital
    on Dec 30, 2025
    Author
    More actions

    If you want to reduce the surface of batch files, why 2 files which sets different environments?
    The portability is broken as env.bat defines set HOME=%WINPYDIRBASE%\settings.
    Which means, the programs which use the user home, writes settings there.
    So if the folder moves, settings move with it.

    Since env_for_icons.bat does not define it, the computer default %HOME% is used.
    I suggest to have a single file to set the environment.

    By the way, not all applications respect %HOME%.
    I for one adds (I create the folders as well):

    set ALLUSERSPROFILE=%WINPYDIRBASE%\settings\ProgramData
    set APPDATA=%WINPYDIRBASE%\settings\AppData
    set HOMEPATH=%WINPYDIRBASE%\settings
    set LOCALAPPDATA=%WINPYDIRBASE%\settings\AppData\Local
    set ProgramData=%WINPYDIRBASE%\settings\ProgramData
    set Public=%WINPYDIRBASE%\settings\Public

    This gives me full portability.

  5. stonebig
    added this to the 2026-01 pandas-3 milestone on Dec 30, 2025
  6. stonebig
    added
    enhancement
    on Dec 30, 2025
  7. stonebig
    added a commit that references this issue on Jan 1, 2026

    the env.bat not called and pwsh variables

    e639d17
  8. stonebig commented on Jan 1, 2026

    @stonebig
    stonebig
    on Jan 1, 2026
    Contributor
    More actions

    ok, so:

    • the segment [env.bat] of winpython.ini is now played by winpythonini.py:
      • it's supposed to replace the env.bat call
      • it includes PYTHONIOENCODING=utf-8
    • now the powershell launcher
      • calls also winpythonini.py to get a resulting set of "set variable1=value1&&set variable2=value2..."
      • and makes them a global set of variables, so it's still available on the command line

    Winpythonini.py gets its dataset from the:

    • env.ini file in the same directory as itself
    • and from python.exe..\settings\winpython.ini (created per winpythonini.py itself if not found)
  9. stonebig
    closed this as completedon Jan 1, 2026
  10. stonebig
    reopened this on Jan 1, 2026
  11. stonebig
    closed this as completedin #1938on Jan 1, 2026
  12. RoyiAvital commented on Jan 1, 2026

    @RoyiAvital
    RoyiAvital
    on Jan 1, 2026
    Author
    More actions

    Have you also dropped env_for_icons.bat?
    I don't see the point in having 2 files to set a single configuration.

  13. stonebig
    reopened this on Jan 1, 2026
  14. stonebig commented on Jan 1, 2026

    @stonebig
    stonebig
    on Jan 1, 2026
    Contributor
    More actions

    env.bat may go away at some point

  15. RoyiAvital commented on Jan 2, 2026

    @RoyiAvital
    RoyiAvital
    on Jan 2, 2026
    Author
    More actions

    I think currently env_for_icons.bat should be gone. There is not point in both.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      • 2026-01 python-3.14 full

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402520 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.