spec/site_config_spec.rb
# formulates the path for the OS.
# e.g. '/example/path'
# => '/example/path' (Linux/Mac)
# => 'C:/example/path' (Windows)
formulates the path for the OS.
formulates the path for the OS .
def to_os_path(path, options={})
    if Origen.running_on_windows?
      drive = __dir__.split(File::SEPARATOR)[0]
      "#{drive}#{path}"
    else
      path
    end
  end
def to_os_path ( path , options = { } ) if Origen . running_on_windows? drive = __dir__ . split ( File :: SEPARATOR ) [ 0 ] "#{drive}#{path}" else path end end
formulates the path for the OS.
formulates the path for the OS .
# don't assume we're running from the same drive as home # drive = home.split(File::SEPARATOR)[0]
path
<not_specific>
options
<not_specific>