How to pass Python command line options (vs arguments) when running script directly vs via Python interpreter?

Malcolm Greene python at bdurham.com
Tue Aug 14 19:44:34 EDT 2018


> If you run the script directly, by entering >script.py or clicking a script icon or name in File Explorer, it runs python without python options *other than those specified in environmental variables*.

Understood. I thought there might have been a way to pass Python option values via a single environment variable (something like PYTHONOPTIONS)  vs individual environment variables.

Thank you
Malcolm



More information about the Python-list mailing list