From acefb9e383e0bb9105774a1edd813ec67f91da02 Mon Sep 17 00:00:00 2001 From: Dave Myron Date: Wed, 11 Aug 2021 10:43:50 -0700 Subject: [PATCH] Expand file paths to handle absolute paths --- util/file_helpers.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/file_helpers.rb b/util/file_helpers.rb index c03077b..fba735a 100644 --- a/util/file_helpers.rb +++ b/util/file_helpers.rb @@ -19,7 +19,7 @@ def call(file) # Simply read the routes file and return data def read(file) - filepath = File.join(File.dirname(__dir__), file) + filepath = File.expand_path(file) file = File.read(filepath) Success(file) rescue