improve generation of surfaces from csv files. Move generated code into separate...
[ardour.git] / libs / surfaces / mackie / scripts / controls.rb
index 7d414cf9669dc90478e4f0dbe9dc44714addcdf7..666c34d4af6868449bba77bb717e68ed377e82d9 100644 (file)
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
+this_dir = File.dirname(__FILE__)
+
 require 'faster_csv'
-require 'mackie.rb'
+require "#{this_dir}/mackie.rb"
 
 class Control
   attr_accessor :id, :led, :group, :name, :ordinal, :switch