[racket] Checking whether running from DrRacket.

From: Robby Findler (robby at eecs.northwestern.edu)
Date: Wed Feb 13 11:53:11 EST 2013

You can use submodules to do that. Tell the racket command-line to run the
submodule and drracket won't run it (drracket does run the 'main' submodule
by default, tho, so either use a different name or tell it not to do that).

Robby


On Wed, Feb 13, 2013 at 10:41 AM, Pierpaolo Bernardi <olopierpa at gmail.com>wrote:

> Hello,
>
> 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.
>
> Thanks!
> P.
>
>
> ____________________
>   Racket Users list:
>   http://lists.racket-lang.org/users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20130213/6ecaf035/attachment.html>

Posted on the users mailing list.