We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hey, looks like python open cannot handle relative paths:
open
c = os.path.join(os.path.abspath(__file__), '..', '..', 'default_config.cfg') config = open(c, 'r')
raises NotADirectoryError for some reason..
NotADirectoryError
It can be fixed by resolving relative paths (for example using os.path.abspath(c)) or pathlib.Path(c).resolve()
os.path.abspath(c)
pathlib.Path(c).resolve()
The text was updated successfully, but these errors were encountered:
I just pushed a new version to PyPi and GitHub as a release. Would you be able to test how it works on Mac? It seems to work fine on Windows.
Sorry, something went wrong.
Looks ok!
No branches or pull requests
Hey, looks like python
open
cannot handle relative paths:raises
NotADirectoryError
for some reason..It can be fixed by resolving relative paths (for example using
os.path.abspath(c)
) orpathlib.Path(c).resolve()
The text was updated successfully, but these errors were encountered: