Deutsch   English   Français   Italiano  
<mailman.61.1747610528.3008.python-list@python.org>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!news.mixmin.net!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: Mats Wichmann <mats@wichmann.us>
Newsgroups: comp.lang.python
Subject: Re: WG: dont use C:\Windows as working directory when installed using
 microsoft store
Date: Sun, 18 May 2025 17:22:03 -0600
Lines: 44
Message-ID: <mailman.61.1747610528.3008.python-list@python.org>
References: <4b0kFS5lPpznWG8@mail.python.org>
 <a0a45b23-0a1b-402a-9e91-2fca59ac992a@wichmann.us>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: news.uni-berlin.de 5pWg9HTO7AUt8vdx5P9gDAGu8tsWUAh4N7/+DzHC6TEw==
Cancel-Lock: sha1:i91NzBlTQwjIQ8v/l7srtZCIJuI= sha256:0/aVc0pE+a0Wo0nb5joq/Za+ViuxrCrZjS8h2e7l1Q4=
Return-Path: <mats@wichmann.us>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=pass
 reason="2048-bit key; unprotected key"
 header.d=wichmann.us header.i=@wichmann.us header.b=GdxZh2+1;
 dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.001
X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'url-ip:159.89.245.108/32':
 0.04; 'url-ip:159.89.245/24': 0.04; 'url-ip:159.89/16': 0.04;
 'url-ip:167.99.21.118/32': 0.04; 'url-ip:167.99.21/24': 0.04;
 'url-ip:167.99/16': 0.04; 'settings.': 0.05; 'happened': 0.07;
 'subject:Windows': 0.07; 'subject:when': 0.07; 'url:moin': 0.07;
 'apparently': 0.09; 'configuring': 0.09; 'idle': 0.09;
 'properties': 0.09; 'proprietary,': 0.09; '"battery': 0.16;
 '"current': 0.16; '(it': 0.16; 'assumptions': 0.16; 'command-
 line': 0.16; 'idle,': 0.16; 'instead.': 0.16; 'launching': 0.16;
 'opinion,': 0.16; 'received:10.202': 0.16; 'received:10.202.2':
 0.16; 'received:internal': 0.16; 'received:messagingengine.com':
 0.16; 'subject:directory': 0.16; 'subject:working': 0.16;
 'using.': 0.16; 'which,': 0.16; 'wrote:': 0.16; 'python': 0.16;
 'probably': 0.17; 'uses': 0.19; 'to:addr:python-list': 0.20;
 'mac': 0.22; 'url-ip:159/8': 0.22; 'version': 0.23; 'install':
 0.23; 'command': 0.23; 'url:wiki': 0.23; 'run': 0.23; 'list,':
 0.24; 'depends': 0.25; 'subject:using': 0.25; 'configure': 0.26;
 'etc': 0.28; 'expect': 0.28; 'folks': 0.28; 'wrong': 0.28;
 'environment': 0.29; 'header:User-Agent:1': 0.30; 'url-ip:167/8':
 0.31; 'program': 0.31; "doesn't": 0.32; 'context': 0.32; 'python-
 list': 0.32; 'but': 0.32; "i'll": 0.33; 'there': 0.33; 'windows':
 0.34; '"the': 0.35; 'fine': 0.35; 'header:In-Reply-To:1': 0.35;
 "it's": 0.36; 'really': 0.36; 'built': 0.36; 'possibly': 0.36;
 'people': 0.36; 'lists': 0.37; 'special': 0.37; 'using': 0.37;
 'directory': 0.37; 'way': 0.38; 'means': 0.38; 'use': 0.39;
 'something': 0.39; "that's": 0.39; 'handle': 0.39; 'prompt': 0.39;
 'still': 0.40; 'appears': 0.40; 'place.': 0.40; 'want': 0.40;
 'in,': 0.60; 'best': 0.61; 'likely': 0.61; 'apps': 0.62;
 'python.org': 0.62; 'copy': 0.63; 'experience': 0.64; 'less':
 0.64; 'in.': 0.64; 'opinion': 0.64; 'sites': 0.64; 'well': 0.65;
 'years': 0.65; 'respond': 0.67; 'look': 0.68; 'during': 0.69;
 'received:202': 0.69; 'phone': 0.70; 'you.': 0.70; 'offer': 0.70;
 'establish': 0.70; 'free,': 0.70; 'ignore': 0.71; 'virtual': 0.71;
 'clicking': 0.76; 'promise': 0.76; 'supposed': 0.76; 'yes': 0.76;
 'advise': 0.78; 'absolutely': 0.84; 'kit': 0.84; 'so:': 0.84
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wichmann.us; h=
 cc:content-transfer-encoding:content-type:content-type:date:date
 :from:from:in-reply-to:in-reply-to:message-id:mime-version
 :references:reply-to:subject:subject:to:to; s=fm1; t=1747610525;
 x=1747696925; bh=e2SsxpYYRbGarzLE0zt4q3VNd70W5yJTqz2Q/piaoDk=; b=
 GdxZh2+1H7gnEMjaQUWfoqbS8SIHSrU8aIHLq5yyhUMr7WZ86PVR+vEsRTpb5zeT
 xZgf67QCdkep9+UTMojDE5G1VL/mbJOUn0D+pccQ1IJjO49yALTO2DUQveKl+Eih
 A3N7HC/RR49gqDsWTI6Hi6CL0ES1n42RSx6M667pNuj0bcCWzmblYtNrdHwttmEx
 S5z7ClGi02BvycExLgMdXW7uDRo5H+dtjNfF2JI3iYbLoYcRvWH3ZmymESkjGG+Q
 Kzogm8eNDv8dYulQFj2tAkEope6zGFgPyrUm9hhiSj8VQk4Ta5nFa7pYR3lnz8Z8
 EJTpHUtVJyZYeXJivEmAnA==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:content-transfer-encoding:content-type
 :content-type:date:date:feedback-id:feedback-id:from:from
 :in-reply-to:in-reply-to:message-id:mime-version:references
 :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender
 :x-me-sender:x-sasl-enc; s=fm3; t=1747610525; x=1747696925; bh=e
 2SsxpYYRbGarzLE0zt4q3VNd70W5yJTqz2Q/piaoDk=; b=qGzGV1bOPWi57WkEe
 o+99WstXbiWgSGE1HgpQlLrwBOWyh4TwnCSaiPY5tRx/Wf4ZRFVW7bwOAnLIcTUS
 9IbYmcjDF9Vm0wdAxb8Mo4bmDJVcFYbwMwTS3ejEbd47qgIwWAS05IukV+n2yILx
 QqXIrgLYLdlYfCHz/wdMKRvhzkjyH8JF91pEdr7Yn46AyrBrJ3wNy6eFfwYKP1go
 9SooNy4rlYtC6jH+gNoZ4OA8fL9QzPufdAASvcjJoc1aDn38KhfBleL55OV3/hUc
 RLKMDQ9pxPNXPnHUVG2szm8qFEj16nqwIQg6cr1fflFdFa3FuHmVNUPYoZL7RXG+
 UabTg==
X-ME-Sender: <xms:nWsqaNP0qZzUyfpGDW4l0ayjEwKkExvvUV8bKyY26ZFgTNfvfCVxyQ>
 <xme:nWsqaP_rzFohDyEs2j2ihfF1xiqt0gu-jHiZKp_NyIudZvm3IlPMDmFTqxf3PgUfX
 uM73lE7eLyeTF4r3fM>
X-ME-Received: <xmr:nWsqaMTtu213MouxEtCV9qkpbosH7gnAAr2z82FJYEQuSYLHoLtKFB0aTY7NV6VbDwa5RSGQ2Rj9YEtN1Izv-RONh9N0CS6qXA>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgdefudelkeduucetufdoteggodetrf
 dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggv
 pdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucenucfjughrpefkff
 ggfgfuvfhfhfgjtgfgsehtkeertddtvdejnecuhfhrohhmpeforghtshcuhghitghhmhgr
 nhhnuceomhgrthhsseifihgthhhmrghnnhdruhhsqeenucggtffrrghtthgvrhhnpeffvd
 efffevveffieejfeduueefvdehiefhveeiheevtedulefgteehvdehjeehhfenucffohhm
 rghinhepphihthhhohhnrdhorhhgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrg
 hmpehmrghilhhfrhhomhepmhgrthhsseifihgthhhmrghnnhdruhhspdhnsggprhgtphht
 thhopedupdhmohguvgepshhmthhpohhuthdprhgtphhtthhopehphihthhhonhdqlhhish
 htsehphihthhhonhdrohhrgh
X-ME-Proxy: <xmx:nWsqaJvANf5enQFhtI-5YZQuAGDheSpIn5bGIxP22ofqC1UcTHwHpA>
 <xmx:nWsqaFcIFr3YLfIfgV-aCRjthlWce2yEqbVKnbMGndzMZd4Yyxsu2A>
 <xmx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oErTc9ag+IX05QFgL8
 aF8sfJRv5atcitqQy0gSIsOzI+L/AFdPN/+QQI3dL1tCq14t32KPDtigDhzm6jVPXX5z+V9u
 xnD8XTp+ZvNcWoHXjViM8aXeLLEiCpiVCho307h3XShvqoKINWRQWeAsKKDDAAMFA/48zaey
 wiiEyvI0meJ1KkNHxdLP0yLODr1WV6j9xkPkLWOaIDw7dlwEOlF1N1YtZ2wa0p1wsttdIbIx
 ffgwXmcH4zrdxUIMz3U0BqYzk5H+5cYFXECXTFVOmweS+JECYMj80PjRoKCO1eVO1N30zksB
 36NnhZWPRWIhjK3ZarIYH8JGBBgRAgAGBQI/mKzwAAoJEMAxoJBz2FTG6VEAoKDYHfDp5Q3q
 PuPvPahCE9HsXMgAAJ9INTqcLSJrOfyJ8q95nBO1T26H2Q==
In-Reply-To: <4b0kFS5lPpznWG8@mail.python.org>
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: General discussion list for the Python programming language
 <python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
 <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
 <mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <a0a45b23-0a1b-402a-9e91-2fca59ac992a@wichmann.us>
X-Mailman-Original-References: <4b0kFS5lPpznWG8@mail.python.org>
Bytes: 11190

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...