From 5adeeff5a853a02f452d6d4e44828c08669e395a Mon Sep 17 00:00:00 2001 From: Saku Ytti Date: Mon, 20 Apr 2015 14:22:46 +0300 Subject: expand csv path so that ~/foo/bar works --- lib/oxidized/source/csv.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/oxidized/source/csv.rb') diff --git a/lib/oxidized/source/csv.rb b/lib/oxidized/source/csv.rb index 3b66e65..5064e5e 100644 --- a/lib/oxidized/source/csv.rb +++ b/lib/oxidized/source/csv.rb @@ -18,7 +18,7 @@ class CSV < Source def load nodes = [] - open(@cfg.file).each_line do |line| + open(File.expand_path @cfg.file).each_line do |line| next if line.match /^\s*#/ data = line.chomp.split @cfg.delimiter next if data.empty? -- cgit v1.2.1