Sha256: 314c078e4645c5b1eaaa9bbbc44557bdf1cc3afa7d432eab11b8c35f30f7eab7

Contents?: true

Size: 381 Bytes

Versions: 2

Compression:

Stored size: 381 Bytes

Contents

require 'psych'

module Processing

  if Processing.exported?
    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

2 entries across 2 versions & 1 rubygems

Version Path
ruby-processing-2.6.2 lib/ruby-processing/config.rb
ruby-processing-2.6.1 lib/ruby-processing/config.rb