From 3755e39b440de004eeeeceee355be2d30ac2538e Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Fri, 11 Aug 2023 00:50:10 +0100 Subject: [PATCH] remove chdir --- rakefile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/rakefile b/rakefile index ecbc13d..674aa0d 100644 --- a/rakefile +++ b/rakefile @@ -45,8 +45,7 @@ namespace :e do desc "Runs the obs example" task :obs do - targetdir = File.join(HERE, "examples", "obs") - Dir.chdir(targetdir) - ruby File.join(targetdir, "main.rb") + filepath = File.join(HERE, "examples", "obs", "main.rb") + ruby filepath end end