• WG: dont use C:\Windows as working directory when installed using micro

    From T N@21:1/5 to All on Sat May 17 02:46:47 2025
    ________________________________________Von: T NGesendet: Samstag, 17. Mai 2025 04:33An: idle-dev@python.orgBetreff: dont use C:\Windows as working directory when installed using microsoft storeHi,ive installed python with IDLE using the
    microsoft store, but one big issue with it:whenever i try to save a new file it prompts me to put it in C:\Windows\ which is not a good idea, %userprofile% or %userprofile%\Documents\ would be more appropriate. Normally i just change the value of "
    start in" on the .lnk in the start menu but in case of an app this is not possibleso please fix thatThanks a lot in advance and keep up the good workTN

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Stefan Ram@21:1/5 to T N on Sat May 17 15:54:12 2025
    T N <lhpitn@outlook.de> wrote or quoted:
    whenever i try to save a new file it prompts me to put it

    If you want to try setting a different default save spot in
    IDLE on Windows, here is what you could try - though I am not
    totally sure it will work:

    Find the IDLE shortcut, either in your Start Menu or on your Desktop.

    Right-click it and hit "Properties".

    Go to the "Shortcut" tab and look for the "Start in" box.

    Swap out whatever is in "Start in" for the folder you want,
    like "C:\Users\exampleusername\python_code".

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Mats Wichmann@21:1/5 to Mike Dewhirst via Python-list on Sun May 18 17:22:03 2025
    On 5/18/25 08:39, Mike Dewhirst via Python-list wrote:
    Apologies for top-posting. It's my phone's fault.SinceĀ  no-one appears to have responded, I'll stir up some aggro and offer my opinion based on ~45 years experience with Microsoft.Uninstall python/idle etc completely and download from python.org
    instead. I would advise ignoring recommendations and install to c:/python313 or whatever version suits.Ā From then, I would establish a virtual environment for each project and ignore Windows paths.Ā The clever things built into Windows specific kit have
    built-in assumptions which probably suit some people but not you. Nor me.Good luck.MikeĀ --Unsigned mail from my phone
    I did respond and something went wrong with the copy that was supposed
    to go to the list, still need to investigate why.


    IDLE uses the directory it was started in. That's absolutely fine if
    you're in a directory you want to work in, and you type "idle" to a command-line shell.

    If you launch IDLE, like any command, by clicking on an icon, the start directory depends on how desktop-style launching works (it doesn't have
    the context of a "current working directory" that you have in a shell),
    and on configuration settings. Without configuration (whether by the
    user explicitly, or by the way the launch icon is set up during program installation), it's likely to be the location of the icon file, or some
    other uninteresting place. It's not just Windows where problems have
    happened with IDLE using current-directory that's not what folks expect
    - you can find grumbles for Mac as well if you look on the Internet.

    Configuring the launch directory for a command run via an icon is very system-specific. On Windows you can configure the properties of the icon
    (the real one, not the one in the launch menu, which is a shortcut)...
    except, as in the OP's case, if you used the Store version, which is an
    "app", where you apparently can't. Store apps have some special
    restrictions, which, in my possibly slightly less radical opinion, means
    the Python one is not really worth using.

    So:

    - start IDLE from a shell prompt (change directory first if you want a
    special dev dir)
    - use the python.org version and configure the launch dir via the icon
    - use one of the many good editors/IDEs that handle all this stuff. yes
    that's not a "battery includes" thing like IDLE is, but hey... there are
    many of these, free, proprietary, or in between. A pair of
    community-curated lists are at:

    https://wiki.python.org/moin/IntegratedDevelopmentEnvironments https://wiki.python.org/moin/PythonEditors

    and there are also a several-digit number of internet sites that promise
    "the Best Python Editors" and that kind of click-baity thing...

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)