We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
current_dir
find_project_root()
1 parent 041c567 commit c78e4ccCopy full SHA for c78e4cc
1 file changed
find-project-root/src/find_project_root/api.py
@@ -3,7 +3,7 @@
3
import project_markers
4
5
def find_project_root(path=None, max_depth=9, markers=None):
6
- current_dir = os.getcwd() if path is None else str(path)
+ current_dir = os.getcwd() if not path else str(path)
7
if not os.path.exists(current_dir):
8
raise ValueError('Path does not exist: %s' % os.path.abspath(current_dir))
9
if not markers : markers = project_markers
0 commit comments