11-23-2013, 12:15 AM
Micheus,
I took a moment to look at this today. This may or may not be what we are looking for??? The following is in wings_ask.erl. See Dir = filename:dirname below.
oort
I took a moment to look at this today. This may or may not be what we are looking for??? The following is in wings_ask.erl. See Dir = filename:dirname below.
oort
Quote:2472 ) browse_hook_fun(Index, Flags) ->
( ) Ps0 = proplists:get_value(props, Flags),
( ) Hook = proplists:get_value(hook, Flags),
( ) Key = proplists:get_value(key, Flags, 0),
( ) fun(update, {_Var,I,_,Sto}) ->
( ) %% This ".junk" trick is to get Name and Dir right
( ) %% even with empty filename.
( ) Name0 = gb_trees:get(var(Key, I+Index), Sto)++".junk",
( ) Dir = filename:dirname
( ) (filename:absname
( ) (Name0, wings_pref:get_value(current_directory))),