Skip to content

Commit 98b9f21

Browse files
author
Borun Dev Chowdhury
committed
removed addition of None to sys.path in case there is no project root
1 parent 5b48ff9 commit 98b9f21

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

rootpath/append.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@ def append(current_path = None, pattern = None):
4444
"""
4545
project_root_path = rootpath.detect(current_path, pattern)
4646

47+
# if the returned value is None it should not be added
48+
49+
if project_root_path is None:
50+
return False, project_root_path
51+
4752
try:
4853
if project_root_path != current_path:
4954
try:

0 commit comments

Comments
 (0)