Re: Determine whether program was started by clicking icon or command line

2007-11-29 Thread Adonis Vargas
Roger Miller wrote: > On Nov 28, 10:51 pm, Benjamin Hell <[EMAIL PROTECTED]> wrote: >> Hi! >> >> I wonder whether there might be a way to find out how a Python >> program was started (in my case in Windows): By double clicking the >> file or by calling it on the "DOS" command line prompt. >> >> Bac

Re: Determine whether program was started by clicking icon or command line

2007-11-29 Thread Benjamin Hell
Roger Miller wrote: >> I wonder whether there might be a way to find out how a Python >> program was started (in my case in Windows): By double clicking >> the file or by calling it on the "DOS" command line prompt. > > I'm not sure whether this applies to your situation, but often > programs st

Re: Determine whether program was started by clicking icon or command line

2007-11-29 Thread Roger Miller
On Nov 28, 10:51 pm, Benjamin Hell <[EMAIL PROTECTED]> wrote: > Hi! > > I wonder whether there might be a way to find out how a Python > program was started (in my case in Windows): By double clicking the > file or by calling it on the "DOS" command line prompt. > > Background: I would like to have

Re: Determine whether program was started by clicking icon or command line

2007-11-29 Thread Atila Olah
On Nov 29, 9:51 am, Benjamin Hell <[EMAIL PROTECTED]> wrote: > Hi! > > I wonder whether there might be a way to find out how a Python > program was started (in my case in Windows): By double clicking the > file or by calling it on the "DOS" command line prompt. I think it's not possible (or very t

Determine whether program was started by clicking icon or command line

2007-11-29 Thread Benjamin Hell
Hi! I wonder whether there might be a way to find out how a Python program was started (in my case in Windows): By double clicking the file or by calling it on the "DOS" command line prompt. Background: I would like to have the program run in an "interactive mode" if double clicked, and silently