summaryrefslogtreecommitdiff
path: root/lib/oxidized/source/csv.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/oxidized/source/csv.rb')
-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?