Sha256: 475c8ac76e534ffc30274b80eaabbdada37b8a41e72fb1d265064ab429eab086

Contents?: true

Size: 390 Bytes

Versions: 7

Compression:

Stored size: 390 Bytes

Contents

require 'psych'

module Processing
  
  if ENV['EXPORTED'].eql?('true')
    RP_CONFIG = { 'PROCESSING_ROOT' => RP5_ROOT, 'JRUBY' => 'false' }
  end
  unless defined? RP_CONFIG
    begin
      CONFIG_FILE_PATH = File.expand_path('~/.rp5rc')
      RP_CONFIG = (Psych.load_file(CONFIG_FILE_PATH))
    rescue
      warn('WARNING: you need to set PROCESSING_ROOT in ~/.rp5rc')
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ruby-processing-2.7.1 lib/ruby-processing/config.rb
ruby-processing-2.7.0 lib/ruby-processing/config.rb
ruby-processing-2.6.18 lib/ruby-processing/config.rb
ruby-processing-2.6.17 lib/ruby-processing/config.rb
ruby-processing-2.6.16 lib/ruby-processing/config.rb
ruby-processing-2.6.15 lib/ruby-processing/config.rb
ruby-processing-2.6.14 lib/ruby-processing/config.rb