Top Level Namespace

Defined Under Namespace

Modules: CheckInstalledMac, ConvertThirtyFps, EightThree, MediaInfoParser, MovieHasher, Muter, OCR, SensibleSwing, SubtitleProfanityFinder Classes: AutoWindowFinder, Blanker, EdlParser, File, FrameAccurate, KeyboardInput, MplayerEdl, OverLayer, ScreenTracker, String, Symbol, Time, VLCProgrammer, ZoomPlayerMaxEdl

Instance Method Summary collapse

Instance Method Details

#add_any_bundled_gems_to_load_pathObject

Copyright 2010, Roger Pack This file is part of Sensible Cinema.

Sensible Cinema is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

Sensible Cinema is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with Sensible Cinema.  If not, see <http://www.gnu.org/licenses/>.


19
20
21
22
23
24
25
26
27
28
29
30
# File 'lib/add_any_bundled_gems_to_load_path.rb', line 19

def add_any_bundled_gems_to_load_path
  vendor_dir = File.dirname(__FILE__) +  '/../vendor'
  raise 'no vendor dir?' unless File.directory?(vendor_dir)
  if File.directory? vendor_dir + '/cache'
    Dir[vendor_dir + '/**/lib'].sort.reverse.each{|lib_dir| # prefers newer versioned copies of gems in case I have duplicates
      $: << lib_dir
    }
  else
    require 'rubygems'
    # they'll need imagemagick installed, as well, currently
  end
end

#add_smplayer_pathsObject



65
66
67
68
69
70
71
# File 'lib/gui/base.rb', line 65

def add_smplayer_paths
  discovered_smplayer_folders = Dir['{c,d,e,f,g}:/program files*/smplayer']

  for folder in discovered_smplayer_folders
    ENV['PATH'] = ENV['PATH'] + ";#{folder.gsub('/', "\\")}"
  end
end