anchor.diff:           get_app_env/1,
            get_app_env/2,
            get_vm_env/1,
  +         base_dir/0,
  +         etc_dir/0,
            user/0]).
   
   %% @doc Prepares appropriate configuration so the riaknostic script
  
positive.code:     end.
  
  load_vm_args() ->
      case application:get_env(riaknostic, etc) of
          undefined ->
              {error, "Cannot find Riak configuration directory!"};
          {ok, Path} ->
              VmArgs = filename:join([Path, "vm.args"]),
              case file:read_file(VmArgs) of
                  {error, Reason} ->
                      {error, io_lib:format("Could not read ~s, received error ~w!", [VmArgs, Reason])};
  
negative.code:                _ ->
                     data_directory(KVBackend)
             end,
      [ filename:absname(Dir, base_dir()) || Dir <- Dirs, Dir =/= undefined ].
  
  %% @doc Get a key out of the app.config file, or if it doesn't exist,
  %%      return the Default. See also get_app_env/2.
  