title: Detect script start up from command prompt or "double click" on Windows
body: <p>Is is possible to detect if a Python script was started from the command prompt or by a user "double clicking" a .py file in the file explorer on Windows?</p>