lib/adiwg/mdcodes.rb in adiwg-mdcodes-2.1.3.pre.beta2 vs lib/adiwg/mdcodes.rb in adiwg-mdcodes-2.1.3.pre.beta4
- old
+ new
@@ -18,10 +18,10 @@
module ADIWG
module Mdcodes
# return the path to yaml files.
def self.getYamlPath
- File.join(File.dirname(__FILE__),'..','..','resources')
+ File.join(File.dirname(File.expand_path(__FILE__)),'..','..','resources')
end
# return all codelists with full details
def self.getAllCodeistsDetail(format='hash')
path = getYamlPath + '/*.yml'