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 <olopie...@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 > >
____________________ Racket Users list: http://lists.racket-lang.org/users