From 3b86122e09026331a0c28c895cb8f32540492df4 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Mon, 23 Aug 2010 21:44:53 -0700 Subject: [PATCH] Only calculate the source root once --- lib/vagrant.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vagrant.rb b/lib/vagrant.rb index 28ce5a741..a5b13e11c 100644 --- a/lib/vagrant.rb +++ b/lib/vagrant.rb @@ -7,7 +7,7 @@ module Vagrant # The source root is the path to the root directory of # the Vagrant gem. def source_root - File.expand_path('../../', __FILE__) + @source_root ||= File.expand_path('../../', __FILE__) end end end