grimen / python-rootpath

Python project/package root path detection.
https://pypi.org/project/rootpath
MIT License
23 stars 14 forks source link

AttributeError: module 'rootpath' has no attribute 'detect' #1

Closed deepdiy closed 5 years ago

deepdiy commented 5 years ago

installed with pip, win10, python 3.7.3 when use rootpath.detect, get: AttributeError: module 'rootpath' has no attribute 'detect'

deepdiy commented 5 years ago

installed with pip, win10, python 3.7.3 when use rootpath.detect, get: AttributeError: module 'rootpath' has no attribute 'detect'

oops, it's because I named my test py file as 'rootpath.py'.

grimen commented 5 years ago

Yea, that will not work in Python world. This is one of the most poor/flawed design decisions in Python, so I don't blame you. :)