On 22/12/2023 13.36, Sibylle Koczian wrote:
Hello,
I always install Python on Windows in the same manner:
- Python is not on the path,
- it is installed for all users,
- the Python Launcher is installed for all users,
- the file types .py, .pyw etc. are associated with Python.
My shebang line
What is the "command line" on your Windows 11?
On Windows 10 it usually is "cmd.exe" (Windows Command Prompt).
On Windows 11 it usually is the "Terminal" which is different from
cmd.exe.
--
https://mail.python.org/mailman/listinfo/python-list
> On 22 Dec 2023, at 12:39, Sibylle Koczian via Python-list
> wrote:
>
> Hello,
>
> I always install Python on Windows in the same manner:
>
> - Python is not on the path,
> - it is installed for all users,
> - the Python Launcher is installed for all users,
> - the file types .py, .pyw
I am writing a program that goes through file hierarchies and I am mostly
using scandir for that which produces DirEntry instances.
At times it would be usefull if I could make my own DirEntry for a specific
path, however when I try, I get the following diagnostic:
os.DirEntry('snap')
> On 22 Dec 2023, at 14:29, Sibylle Koczian wrote:
>
> #!/usr/bin/env/python
That was what i thought you had and it will not work.
The BOM suggestion is worth trying.
Barry
--
https://mail.python.org/mailman/listinfo/python-list
Hello,
I always install Python on Windows in the same manner:
- Python is not on the path,
- it is installed for all users,
- the Python Launcher is installed for all users,
- the file types .py, .pyw etc. are associated with Python.
My shebang line is usually "#!/usr/bin/env python3".
This
Am 22.12.2023 um 14:13 schrieb Barry:
On 22 Dec 2023, at 12:39, Sibylle Koczian via Python-list
wrote:
Hello,
I always install Python on Windows in the same manner:
- Python is not on the path,
- it is installed for all users,
- the Python Launcher is installed for all users,
- the file
> On 22 Dec 2023, at 14:58, Christian Buhtz via Python-list
> wrote:
>
> On Windows 11 it usually is the "Terminal" which is different from cmd.exe.
In terminal app you can run cmd.exe or powershell, so it is basically the same.
Barry
--
On 12/22/2023 9:29 AM, Sibylle Koczian via Python-list wrote:
Am 22.12.2023 um 14:13 schrieb Barry:
On 22 Dec 2023, at 12:39, Sibylle Koczian via Python-list
wrote:
Hello,
I always install Python on Windows in the same manner:
- Python is not on the path,
- it is installed for all
On 12/22/2023 7:19 PM, Barry wrote:
On 23 Dec 2023, at 00:15, Thomas Passin via Python-list
wrote:
In neither case is the shebang line used.
As i understand it, not in front of my windows box to check.
The handler for .py file extension is set to be the py.exe
It is py.exe that
> On 23 Dec 2023, at 00:15, Thomas Passin via Python-list
> wrote:
>
> In neither case is the shebang line used.
As i understand it, not in front of my windows box to check.
The handler for .py file extension is set to be the py.exe
It is py.exe that understands shebang lines.
Barry
--
Antoon,
On 12/23/23 01:00, Antoon Pardon via Python-list wrote:
I am writing a program that goes through file hierarchies and I am mostly
using scandir for that which produces DirEntry instances.
At times it would be usefull if I could make my own DirEntry for a specific
path, however when I
On 12/22/2023 7:36 AM, Sibylle Koczian via Python-list wrote:
Hello,
I always install Python on Windows in the same manner:
- Python is not on the path,
- it is installed for all users,
- the Python Launcher is installed for all users,
- the file types .py, .pyw etc. are associated with
On 12/22/2023 7:27 PM, Michael Torrie via Python-list wrote:
On 12/22/23 07:02, Thomas Passin via Python-list wrote:
On my Windows 10 machine, Python scripts run without a shebang line.
Perhaps Windows 11 has added the ability to use one, but then you would
need to use the actual location of
On 12/22/23 11:42, Thomas Passin via Python-list wrote:
> There is some important context that is missing here. Python on Windows
> does not normally install to that location. That is not even a Windows
> path, neither by directory name nor by path separators.
No, that's just the way the py
On 12/22/23 07:02, Thomas Passin via Python-list wrote:
> On my Windows 10 machine, Python scripts run without a shebang line.
> Perhaps Windows 11 has added the ability to use one, but then you would
> need to use the actual location of your Python executable.
Yes if you associate .py or .pyw
16 matches
Mail list logo