From c4d53e16fb9748856c1650472f6dcb1aff0b58c1 Mon Sep 17 00:00:00 2001
From: Oliver Davies <oliver@oliverdavies.uk>
Date: Tue, 21 Aug 2018 09:23:31 +0100
Subject: [PATCH] Fix directory path, remove double slash

---
 src/Service/Partials.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Service/Partials.php b/src/Service/Partials.php
index 7b7d857..d24cdea 100644
--- a/src/Service/Partials.php
+++ b/src/Service/Partials.php
@@ -38,6 +38,6 @@ class Partials
      */
     protected function getFilePattern(string $directoryName)
     {
-        return __DIR__ . DIRECTORY_SEPARATOR . $directoryName . DIRECTORY_SEPARATOR . '/*.php';
+        return getcwd() . DIRECTORY_SEPARATOR . $directoryName . DIRECTORY_SEPARATOR . '*.php';
     }
 }