summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
Diffstat (limited to 'tool')
-rw-r--r--tool/vpath.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/tool/vpath.rb b/tool/vpath.rb
index 5241d2d544..5aa2f9f3fe 100644
--- a/tool/vpath.rb
+++ b/tool/vpath.rb
@@ -6,7 +6,7 @@ class VPath
def initialize(*list)
@list = list
@additional = []
- @separator = File::PATH_SEPARATOR
+ @separator = nil
end
def inspect
@@ -65,6 +65,7 @@ class VPath
end
def list
+ @separator ||= (require 'rbconfig'; RbConfig::CONFIG["PATH_SEPARATOR"])
@additional.reject! do |dirs|
case dirs
when String