Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Python Launcher (on Windows) only necessary when 2 or more Python versions installed?
Post: Python Launcher (on Windows) only necessary when 2...

I wonder when users need the Python Launcher. I installed newest 64bit Python v3.12.2 on Windows. Thats my one and only Python installation. So according to Python docs the Python Launcher (on Wind...
pstein General Coding Help 1 330 Feb-17-2024, 09:02 AM
    Thread: How to receive two passed cmdline parameters and access them inside a Python script?
Post: How to receive two passed cmdline parameters and a...

Sorry for this newbie question: Assume I have have a python script myscript.py (on Windows 10). Now I want to call this script (from command line) and pass two parameters (separrted by blanks) e.g. ...
pstein General Coding Help 2 352 Feb-17-2024, 08:55 AM
    Thread: How to find out from outside Python (in Windows) the current version of Python?
Post: RE: How to find out from outside Python (in Window...

py.exe is NOT part of the Windows Python v3.12.0 installation. So your suggestion is useless for me
pstein General Coding Help 4 749 Oct-04-2023, 03:44 AM
    Thread: How to find out from outside Python (in Windows) the current version of Python?
Post: How to find out from outside Python (in Windows) t...

Assume I installed in the past Python on my Windows 10 system. Is there a way to find out from OUTSIDE Python the currently installed version of Python? This should be done with a one-line command f...
pstein General Coding Help 4 749 Oct-03-2023, 06:34 AM
    Thread: How to setup automatic notification by email for every post?
Post: How to setup automatic notification by email for e...

When I post something into forum I want to get immediately an email notification for every reply. Currently I always have to enable manually the radio button "Subscribe and receive email notification...
pstein Board 1 1,383 Jun-29-2023, 05:10 AM
    Thread: Is there a *.bat DOS batch script to *.py Python Script converter?
Post: Is there a *.bat DOS batch script to *.py Python S...

I consider to convert some of my long term *.bat batch scripts (on Windows) to a corresponding *.py Pythoin script. Is there a reliable converter tool to perform this task automatically?
pstein General Coding Help 3 3,267 Jun-29-2023, 05:05 AM
    Thread: How to "tee" (=split) output to screen and into file?
Post: How to "tee" (=split) output to screen and into fi...

Assume I want to write something from inside a *.py script to screen AND into file D:\tools\python\myoutput.log How can I achive this WITHOUT executing the same command twice? Is there something lin...
pstein General Coding Help 6 1,404 Jun-23-2023, 06:59 PM
    Thread: How to pause execution (on windows)?
Post: How to pause execution (on windows)?

Assume I have created a *.py script (on windows). If I double click on it it is executed. But the command prompt windows vanishes immediately. I cannot read output. I need to write a kind of "pause" ...
pstein General Coding Help 1 563 Jun-23-2023, 06:54 PM
    Thread: Setup Portable Python on Windows for script starts with double clicks?
Post: Setup Portable Python on Windows for script starts...

I want to install (only) Portable Python (on Windows) or even use it from USB flash drive. For this I just want to unpack this Portable Python package: https://sourceforge.net/projects/portabl...on%...
pstein General Coding Help 0 1,824 Feb-18-2022, 01:29 PM
    Thread: Portable installation of Python possible?
Post: Portable installation of Python possible?

When I go to the Download page then I can see only Installers and no portable *.zip package. I would like to put Python on an USB Flash Drive and run it from there (on various computers without leavi...
pstein General Coding Help 2 3,098 Nov-15-2020, 09:17 AM
    Thread: Last Python (64bit) version for Windows 7?
Post: Last Python (64bit) version for Windows 7?

What is the last version which is available for Windows 7 (64bit) ?
pstein General Coding Help 3 22,148 Nov-14-2020, 06:45 PM
    Thread: Check Python version from inside script? Run Pythons script in v2 compatibility mode?
Post: Check Python version from inside script? Run Pytho...

Can I somehow check from inside a Python script if the executing Python engine is major version v2 or v3? I am thinking about a code similar to if (os.python-majorversion<3)  print hello else pri...
pstein General Coding Help 2 9,844 Jul-07-2017, 06:27 AM
    Thread: How to print current pwd?
Post: RE: How to print current pwd?

What do you mean with "another method"? Which method would be better?
pstein General Coding Help 5 15,443 Jul-06-2017, 10:24 AM
    Thread: How to print current pwd?
Post: How to print current pwd?

Assume I want to print out the current pwd from inside a python v3 script. The following does not work: import os print("pwd=" + os.getcwd()) How else can I achieve this? Peter
pstein General Coding Help 5 15,443 Jul-06-2017, 10:10 AM
    Thread: "Python launcher" required to run *.py scripts on Windows?
Post: "Python launcher" required to run *.py scripts on ...

As I observed v3.6.1 installs (on Windows 7) in addition to the core python engine a second program "Python Launcher". As far as I read this component seems to be not necessary since it only aims to ...
pstein General Coding Help 3 11,324 Jun-27-2017, 05:43 AM
    Thread: Syntax error for simple script
Post: Syntax error for simple script

Sorry for this newbie question: I installed Python v3.6.1 on win 7. Afterwards I tried to execute the following simple python script from webpage www.pythonforbeginners.com/code-snippets-source-code/...
pstein General Coding Help 2 4,010 Jun-26-2017, 03:05 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020