From 98b9f21d2a24ae2ffd75e4c85c4550edfb94b3bf Mon Sep 17 00:00:00 2001 From: Borun Dev Chowdhury Date: Wed, 31 Mar 2021 15:08:46 +0100 Subject: [PATCH] removed addition of None to sys.path in case there is no project root --- rootpath/append.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rootpath/append.py b/rootpath/append.py index 8a769db..3e449f7 100644 --- a/rootpath/append.py +++ b/rootpath/append.py @@ -44,6 +44,11 @@ def append(current_path = None, pattern = None): """ project_root_path = rootpath.detect(current_path, pattern) + # if the returned value is None it should not be added + + if project_root_path is None: + return False, project_root_path + try: if project_root_path != current_path: try: