[erlang-questions] Escript

Julian Fondren ayrnieu@REDACTED
Fri Mar 30 18:24:26 CEST 2007


On 3/30/07, Bengt Kleberg <bengt.kleberg@REDACTED> wrote:
> it it possible to get the name of the script when using escript?

escript throws it away:

  start([_|X]) ->
      X0 = map(fun(I) -> binary_to_list(I) end, X),
      [_,File|Args] = X0,
      ___,
      if
          ___;
          true ->
              case Mode of
                  interpret ->
                      interpret(File, Parse, Args);
                  compile ->
                      compile(Parse, Args)
              end
      end.

  interpret(File, Parse, Args) ->
      ___,
      Call = {call,999,{atom,999,main},[ArgsA]},
      ___.

Cheers,
Julian



More information about the erlang-questions mailing list