Skip to content

Commit c78e4cc

Browse files
committed
Corrected current_dir condition in find_project_root()
1 parent 041c567 commit c78e4cc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • find-project-root/src/find_project_root

find-project-root/src/find_project_root/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import project_markers
44

55
def find_project_root(path=None, max_depth=9, markers=None):
6-
current_dir = os.getcwd() if path is None else str(path)
6+
current_dir = os.getcwd() if not path else str(path)
77
if not os.path.exists(current_dir):
88
raise ValueError('Path does not exist: %s' % os.path.abspath(current_dir))
99
if not markers : markers = project_markers

0 commit comments

Comments
 (0)