Method: Sc2::Paths.project_root_dir

Defined in:
lib/sc2ai/paths.rb

.project_root_dirString

Returns project root directory

Returns:

  • (String)

    path because bundler does.



179
180
181
182
183
# File 'lib/sc2ai/paths.rb', line 179

def project_root_dir
  return Bundler.root.to_s if defined?(Bundler)

  Dir.pwd
end