Skip to content
New issue

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

"NotADirectoryError" crash on macos #9

Open
FriendsOfGalaxy opened this issue Dec 20, 2019 · 2 comments
Open

"NotADirectoryError" crash on macos #9

FriendsOfGalaxy opened this issue Dec 20, 2019 · 2 comments

Comments

@FriendsOfGalaxy
Copy link

Hey, looks like python open cannot handle relative paths:

c = os.path.join(os.path.abspath(__file__), '..', '..', 'default_config.cfg')
config = open(c, 'r') 

raises NotADirectoryError for some reason..

It can be fixed by resolving relative paths (for example using os.path.abspath(c)) or
pathlib.Path(c).resolve()

@tylerbrawl
Copy link
Owner

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.

@FriendsOfGalaxy
Copy link
Author

Looks ok!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants