From 747d0173fdbee31e3e4d16f3137ed4662a199619 Mon Sep 17 00:00:00 2001 From: David Vazgenovich Shakaryan Date: Sat, 1 Aug 2009 20:20:00 -0700 Subject: Use absolute paths with require. --- libmpd.rb | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/libmpd.rb b/libmpd.rb index 00b5c16..9d75dd6 100644 --- a/libmpd.rb +++ b/libmpd.rb @@ -9,12 +9,15 @@ # *Author*:: David Vazgenovich Shakaryan # *License*:: GNU General Public License v3 + require 'socket' -require 'libmpd/database' -require 'libmpd/playbackcontrol' -require 'libmpd/playbackoptions' -require 'libmpd/playlist' -require 'libmpd/status' + +MODULE_PATH = File.dirname(__FILE__) + '/libmpd/' +require MODULE_PATH + 'database' +require MODULE_PATH + 'playbackcontrol' +require MODULE_PATH + 'playbackoptions' +require MODULE_PATH + 'playlist' +require MODULE_PATH + 'status' class TrueClass # :nodoc: def to_i -- cgit v1.2.3-70-g09d2