Starling On Windows

0 views
Skip to first unread message

Gordon Guthrie

unread,
Apr 30, 2008, 8:08:18 AM4/30/08
to starling-discuss
Patch for starling_server.erl which didn't handle windows paths
properly:

start_link(ExtProg) ->
Path = code:priv_dir(starling),
%% Drop "priv".
DirName=filename:dirname(Path),
io:format(" in starling_server:start_link got to 1~n"),
ExtProg2 = case os:type() of
{win32,nt} -> ExtProg ++ ".exe";
_ -> ExtProg
end,
DrvPath = filename:join(["/", DirName, "ebin", ExtProg2]),
gen_server:start_link({local, ?MODULE}, starling_server, DrvPath,
[]).

Hasan Veldstra

unread,
May 2, 2008, 5:54:06 AM5/2/08
to starling...@googlegroups.com

Thanks, committed.

Reply all
Reply to author
Forward
0 new messages