summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaku Ytti <saku@ytti.fi>2015-04-20 14:22:46 +0300
committerSaku Ytti <saku@ytti.fi>2015-04-20 14:22:46 +0300
commit5adeeff5a853a02f452d6d4e44828c08669e395a (patch)
treef93bbec23504111d77480a6dd6981fadba079410
parente384332a707dbcae0908223e7d96f406bd3dc491 (diff)
expand csv path
so that ~/foo/bar works
-rw-r--r--lib/oxidized/source/csv.rb2
1 files changed, 1 insertions, 1 deletions
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?