Method: OpenStudio::Workflow::InputAdapter::Local#preserve_run_dir

Defined in:
lib/openstudio/workflow/adapters/input/local.rb

#preserve_run_dir(user_options, default) ⇒ Object



195
196
197
198
199
200
201
202
203
204
205
# File 'lib/openstudio/workflow/adapters/input/local.rb', line 195

def preserve_run_dir(user_options, default)
  # user option trumps all others
  return user_options[:preserve_run_dir] if user_options[:preserve_run_dir]

  # try to read from OSW
  if @run_options && !@run_options.empty?
    return @run_options.get.preserveRunDir
  end

  return default
end