Permalink
Browse files

Fix escript when used with no arguments

  • Loading branch information...
1 parent 32a2790 commit 4389638cbef249255dbe2890529f448c2dd046da @dreverri dreverri committed Nov 28, 2010
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/erldocs.erl
View
@@ -4,7 +4,8 @@
%% @doc Called automatically by escript
-spec main(list()) -> ok.
main([]) ->
- Conf = [{apps, ["."]}, {dest, "doc/erldocs"}],
+ {ok, CWD} = file:get_cwd(),
+ Conf = [{apps, [CWD]}, {dest, "doc/erldocs"}],
run(Conf);
main([Dest]) ->

0 comments on commit 4389638

Please sign in to comment.