[racket] Checking whether running from DrRacket.
> Is there a way for a program to know if it's running from inside DrRacket or
> from the command line?
>
> I would like to run a main function when from command line, and don't run it
> when in DrRacket.
Yes; you can look at Test and Main Submodules in the Racket Guide to
see how to do this:
http://docs.racket-lang.org/guide/Module_Syntax.html#%28part._main-and-test%29
Essentially, have a submodule named 'main': that submodule will be
invoked when you run the module at the command line, but will not be
invoked if you do a normal require.